cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amirghaderi
Helper IV
Helper IV

Show value as percentage of sub column value

Is there any way in the below example to set Power Bi to calculate each row % from total highlighted in yellow (Total of baseline) and (Total of Current) and not the full line total.

It means that there will be 100% for current and 100% for Baseline

 

amirghaderi_1-1636799990683.png

 

 

 

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @amirghaderi,

I think you can add if statement to check the current content level and write specific DAX expression for the subtotal level calculations:

Clever Hierarchy Handling in DAX - SQLBI

If you are confused about the coding formula, please share some dummy data to test.

How to Get Your Question Answered Quickly

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Fsciencetech
Helper III
Helper III

Please share sample pbix

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors