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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
njd_1988
New Member

Calculate Percent by Column Total DAX Measure

Hello, Power BI Community! 

 

I'm attempting to create a DAX measure that will calculate percent by column total that accounts for week over week data and a subgroup. I've been researching this for the past week and i'm unable to find a formula that works. Since i'm using a slicer to switch between different metrics, i'm unable to use the "show value as" feature. I've included the organization and some sample data below along with the column names below. Overall, i'm wanting to find week over week volume for the number of calls that come from specific states and cities. If I need to include any additional information, please let me know. Any help is greatly appreciated! Thanks! 

njd_1988_0-1638827937138.png

 

 

 

1 ACCEPTED SOLUTION
njd_1988
New Member

Thanks for the reply, @amitchandak! I'll also keep the feedback in mind for any future posts. When using your code, results came in as 100% for everything. I was able to figured it out after doing a little more research. Below is what I used. Let me know if you have any feedback. 

CALC_SURVEY_VOLUME_WoW = DIVIDE(SUM('Table'[Call]),CALCULATE(SUM('Table'[Call]),ALLSELECTED('Table'[State], 'Table'[City])))

View solution in original post

2 REPLIES 2
njd_1988
New Member

Thanks for the reply, @amitchandak! I'll also keep the feedback in mind for any future posts. When using your code, results came in as 100% for everything. I was able to figured it out after doing a little more research. Below is what I used. Let me know if you have any feedback. 

CALC_SURVEY_VOLUME_WoW = DIVIDE(SUM('Table'[Call]),CALCULATE(SUM('Table'[Call]),ALLSELECTED('Table'[State], 'Table'[City])))
amitchandak
Super User
Super User

@njd_1988 , the subject and description not working together , if need % for a column say week ending date

% of week = divide(sum(Table[Call]) , calculate(sum(Table[Call]), filter(allselected(Table), Table[State] = max(Table[State]) && Table[City] = max(Table[City]) ) ) )

 

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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