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
dkay84_PowerBI
Microsoft Employee
Microsoft Employee

Understanding DAX

Generally speaking, if I create a measure that, when added to a multi-level (hierarchically built) matrix, displays the correct values on each row, is it 100% safe to say that in a graph or kpi that it will aggregate correctly?

For example, I have sales data with salesperson and date for each transaction. I have another table with salesperson, date (start of quarter) and quota. I created (I think) a measure that calculates variance to quota for each quarter for each salesperson.

When I create a matrix with rows sales person > year > quarter and values sales and quota, if I add my variance measure it displays the correct values (quota - sales) for each salesperson for each quarter. Can I be confident that my measure is correctCapture.PNG

 

In the image above, the Sales and Quota values are from the raw data (a sales table and a quota table with salesperson key) and both tables are linked to a date table.  I calculated Variance to Quota as simply CALCULATE([Total Sales]-SUM(Quotas[SalesAmountQuota])).

 

It seems too simple a measure to be correct, but I imagine that the relationships with date allow the measure to calculate properly?

1 REPLY 1
Anonymous
Not applicable

Hi @dkay84_PowerBI,

 

The matrxi visual will auto summary data based on columns and rows. If your measure hasn't add some filter, it will work with these summaried data.

 

Regards,

Xiaoxin Sheng

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
Top Kudoed Authors