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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

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

Anonymous
Not applicable

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors