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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
aerizk
Helper II
Helper II

Calculate measure at aggregated level only

I have two tables with similar granularities and i want to calculate a simple KPI that divides one measure by another in the second table. the two tables are linked together by country, business type dimension, and date dimension. The KPI is simply dividing the total Sales of the first by the total Vol for each month. However i want this measure to always be done at country level and does not change if I select shop or store from the customer type dimension.

 

DateBusinessTypeCountrySales
01/01/2023ShopES100.00
02/01/2023ShopES200.00
03/01/2023ShopES300.00
01/01/2023ShopES500.00
02/01/2023ShopES600.00
03/01/2023ShopES700.00

 

DateBusinessTypeCountryVol
01/01/2023StoreES1000
02/01/2023StoreES1200
03/01/2023StoreES1300
01/01/2023StoreES1000
02/01/2023StoreES1200
03/01/2023StoreES1300

 

When I test in a table my table looks like this, which is correct at total. But I want this measure to be impacted no matter what i select in Business Type

 

DateBusinessTypeSalesVolPercentage
01/01/2023Shop600.00 0
01/01/2023Store 2,000.00 
Total 600.002,000.0030%

 

However when I select a Business Type from the slicer as Shop for example this is what I see.

DateBusinessTypeSalesVolPercentage
01/01/2023Shop600.00 0
Total   0%

 

Thank you!

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

1 REPLY 1
lbendlin
Super User
Super User

lbendlin_0-1696098425253.png

 

 

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors