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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
mtownend
New Member

Percentage at different Levels

Hi,

 

I have two tables one called Location and the other called Fact_Avail

 

The location table contains information as below.

 

RegionClusterStore
751011236
751013216
801014569
801017423
751027894
801029654

 

Fact_Avail

StoreASVLSV
12362144.1985
32162081.659
45692307.6368
74231822.7728
7894120421.7677
96543510.0697

 

I am wanting to create a calculated percentage so that if i select a region or clust or Store the percentage will calculate.

 

Thanks

 

 

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi, @mtownend

 

You can take my test as a reference. In this example, I calculated the percentage for column ASV, if I select 75 for region, the percentage should be (214+208+1204)/(214+208+230+182+1204+35) = 0.78.

 

Formulas:

ALLTotalASV = CALCULATE(SUM(Fact_Avail[ASV]),ALL(Fact_Avail))

SelectTotalASV = SUM(Fact_Avail[ASV]) 

Percentage = [SelectTotalASV]/[ALLTotalASV]

Visualization:

 

3.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi

 

I have tried the solution but get the same values for AllTotalASV as for the SelectTotalASV

 

AllTotalASV = calculate(sum(Fact_AvailStoreItem[ActualSalesVolume]),All(Fact_AvailStoreItem))

 

SelectTotalASV = sum(Fact_AvailStoreItem[ActualSalesVolume])

 

Thanks

 

Martin

Hi, @mtownend

 

Please make sure that you created measures rather than calculated columns using above formulas.

 

Thanks,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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