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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.