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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Cosmac
Frequent Visitor

Issue with Multiple date keys and displaying dates on report.

Hello, i am working on a SSAS Tabular model to support Power BI report development. Our main fact table has multiple dates (Order Date, Paid Date, Shipped Date) with the Order Date being the active relationship to the date dimension. One of our reports requires a table that has the following columns (amoung others) Date and Amount by Paid Date. I understand how to build the measure "Amount by Paid Date" using USERELATIONSHIP to active the relationship between my fact.paid_date_key and the dim.date_key. 

 

Other than fully duplicating my date dimension to have a "Paid Date Dimension" and use that inactive relationship. how can i include "Paid Date" in my report table?

7 REPLIES 7
Cosmac
Frequent Visitor

This report and the majority of them are built using direct connect, so the SSAS Tabular need to be fully modeled out. I believe in that setup, the best that the report developer can do is to create their own measures, but i could be mistaken.

 

Dim.DateRelationshipfact.Sales
Date_KeyActiveOrder_Date_Key
Date_KeyInactivePaid_Date_Key

 

If i wanted to do a report that looked like the following:

Order DatePaid DateOrder AmountDiscount AmountPaid Amount
2024-01-012024-01-02$100.00$20.00$80.00
2024-01-012024-01-03$200.00$0.00$200.00

 

So Order Amount is just a SUM, same with Discount Amount. For Paid Amount the DAX looks something like 

CALCULATE ( SUM('Fact.Sales'[Paid_Amount]), USERELATIONSHIP ('Fact.Sales'[Paid_Date_Key], 'dim.date'[Date_Key]) )

 

 

The issue ive been having is around the "Paid Date" column, how can i display that effectivly in a measure or what other options should i be exploring?

 

I hope this example is clearer, this is just a rough scenario so it might not be 100% but it should paint a picture.

are built using direct connect,

That's not a thing.  Either you have Live Connection (no option to edit)  or Direct Query (with option to edit).

Sorry for using incorrect terminology. In power BI i see two options, "Import" and "Connect Live".

 

The scenario i am talking about is reports build using  Live Connection (no option to edit).

Does it have to be SSAS Tabular or could it instead be implemented as a Power BI Semantic Model?

Currently it needs to be a SSAS Tabular model.

If you have a Pro license you can open a Pro ticket at https://admin.powerplatform.microsoft.com/newsupportticket/powerbi
Otherwise you can raise an issue at https://community.fabric.microsoft.com/t5/Issues/idb-p/Issues .

lbendlin
Super User
Super User

Other than fully duplicating my date dimension to have a "Paid Date Dimension" and use that inactive relationship. how can i include "Paid Date" in my report table?

You lost me on that part.  Do you need to model the entirety of the relationships in your cube or can you allow the report users to create their own connections?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.