Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We'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

Reply
ShayanSidddique
Regular Visitor

Fact Table Multiple Dates Relationship with Dimension Date

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.

2 ACCEPTED SOLUTIONS

hello @ShayanSiddiqueI 

 

this should be done by using calendar table then use the calendar column as date in visualisation.

Irwan_1-1771900959164.png

Irwan_0-1771900941244.png

 

Thank you.

View solution in original post

cengizhanarslan
Super User
Super User

Option 1) Single Date table + USERELATIONSHIP 

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])
)

 

Option 2) Role-Playing Date Dimensions

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

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.

View solution in original post

8 REPLIES 8
v-prasare
Community Support
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.

 

 

 

Thank you for your patience and look forward to hearing from you.
Best Regards,
Prashanth Are
MS Fabric community support

v-prasare
Community Support
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

cengizhanarslan
Super User
Super User

Option 1) Single Date table + USERELATIONSHIP 

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])
)

 

Option 2) Role-Playing Date Dimensions

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

 

_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
Irwan
Super User
Super User

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.

Irwan_1-1771900959164.png

Irwan_0-1771900941244.png

 

Thank you.

Stachu
Community Champion
Community Champion

Hello

you should create non active relationships and then activate them accordingly with USERELATIONSHIP, see:
https://dax.guide/userelationship/



Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

when I am doing this and putting everything in a single table it is giving me wrong results

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.