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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ding
Frequent Visitor

When to use Dimension Date and Data Date

Hi Everyone,

 

I have two question about when to use Dimension Date and Data Date. Looking for your kindly help.

 

Question 1:

I have Dimension Table: Dimdate(Primary Key- Display Date), Staff Table(Primary Key- Staff)

Fact Table: Sale(Foreigh Key-Sales Date), Activity(Foreigh-Activity Date)

Q2.PNG 

 

Measure: Moving Average in Sales Table.

 

When I use Sales Date in sales table, return me correct moving average, but when I use display date from Dim table, return me incorrect value. Why it give me incorrect value? The reason I need use Dim Date is because I need it filter value for other visual.

Q1.PNG

Question 2:

When I click display date to filter , why it didnt return me Count of Type by staff.Q3.PNGQ4.PNG

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

Hi Ding,

 

For Q1, you drag [DisplayDate] from 'mdw dimDate' to your chart, right? Because the relationship between 'mdw dimDate' and 'Sales' is one-to-many, so column [DisplayDate] will filter your chart first, then your measure will be calculated based on the filter context. So the average is calcualted in a filtered table which have only one value in [Sales Value] column.

 

For Q2, please check if values in [staff] column are numeric value, it not, those values only can be counted.

 

Regards,

Jimmy Tao

Thanks Jimmy.

 

That means we can't use measure for aggregation when we use data from Dimension Table and we can't use calculated column for aggregation.

 

So what is the solution for using arregation and use it to return the value on different visual?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.