Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have a Fact Table having Multiple Date Columns keys I wanted to Show the All the Date in A Single Table While Creating a Report. How Can I show all the Dates in the Single Table as I can just have one active relationship between the Fact and Dimension Table Should I create the Role Playing Dimensions in the PBI Model Using the Available Date Column and Should I Use Another Approach for it. Looking Forward for a most effecient approach which will not put any impact on Model.
Solved! Go to Solution.
hello @ShayanSiddiqueI
this should be done by using calendar table then use the calendar column as date in visualisation.
Thank you.
Keep one Date dimension and create:
1 active relationship (e.g., Order Date)
Other relationships inactive (e.g., Ship Date, Invoice Date)
Then create measures like:
Sales by Ship Date =
CALCULATE(
SUM(Fact[Amount]),
USERELATIONSHIP(Fact[ShipDate], DimDate[Date])
)
If you need to:
Show Order Date, Ship Date, Invoice Date side by side in the same visual
Slice/filter independently by each date type
Then create:
DimDate_Order
DimDate_Ship
DimDate_Invoice
All copied from the same Date table and each one has:
Its own active relationship
Hi @ShayanSidddique,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support
Hi @ShayanSidddique,
We would like to confirm if our community members answer resolves your query or if you need further help. If you still have any questions or need more support, please feel free to let us know. We are happy to help you.
@cengizhanarslan, @Irwan & @Stachu ,Thanks for your prompt response
Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support
Keep one Date dimension and create:
1 active relationship (e.g., Order Date)
Other relationships inactive (e.g., Ship Date, Invoice Date)
Then create measures like:
Sales by Ship Date =
CALCULATE(
SUM(Fact[Amount]),
USERELATIONSHIP(Fact[ShipDate], DimDate[Date])
)
If you need to:
Show Order Date, Ship Date, Invoice Date side by side in the same visual
Slice/filter independently by each date type
Then create:
DimDate_Order
DimDate_Ship
DimDate_Invoice
All copied from the same Date table and each one has:
Its own active relationship
hello @ShayanSidddique
what do you mean by show all date in single table?
- is it getting summarize when showing the value in table visual?
in table visual, pick the option on table value then choose dont summarize.
- do you want to show all date even there is no corresponding date in your fact table?
create a calendar/date table, then create a relationship between calendar table and fact table, then use date value from calendar table instead of using date in fact table.
Hope this will help.
Thank you.
Showing all dates means that I wanted to show the dates that are connected with fk of the fact table with the dimdate date column. Using use relationship it is not giving me a way to show all dates in single table. Don't wanted to perform any aggregation on base of date just wanted to pick up the date column.
hello @ShayanSiddiqueI
this should be done by using calendar table then use the calendar column as date in visualisation.
Thank you.
Hello
you should create non active relationships and then activate them accordingly with USERELATIONSHIP, see:
https://dax.guide/userelationship/
when I am doing this and putting everything in a single table it is giving me wrong results
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 36 | |
| 33 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 72 | |
| 72 | |
| 38 | |
| 35 | |
| 26 |