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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
souvik900766
Helper IV
Helper IV

Divide rows by a measure

Hi !

I have a measure:-  

Base for Volume Share within Category = CALCULATE([Volume CY],Table[company_nm]="Full Industry")
Now, with this measure I want to divide every row (i.e my products value) to get the share within the industry.
But I am getting blank rows !
How to calculate this?Capture.PNG
4 REPLIES 4
amitchandak
Super User
Super User

@souvik900766 ,

one of the three measure. Assume [Volume] is a measure

 

Category = divide([Volume],CALCULATE([Volume],Filter(allselected(Table),Table[company_nm]="Full Industry")))

Category = divide([Volume],CALCULATE([Volume],Filter(all(Table[company_nm]),Table[company_nm]="Full Industry")))

Category = divide([Volume],CALCULATE([Volume],Filter(allselected(Table[company_nm]),Table[company_nm]="Full Industry")))

amitchandak
Super User
Super User

@souvik900766 , I so how not clear with your formula.

It shoulw be like this if you need % of total

divide([Volume CY], calculate([Volume CY], allselected(Table)))

 

or // I am not sure on this one, but seem like this name is not there in selection

 

Category = CALCULATE([Volume CY],Filter(all(Table[company_nm]),Table[company_nm]="Full Industry"))

Hi !
It is not working. I think thr is a lack of clarity from my side.
Kindly Check this !
Capture.PNG

Thanks in Advance !

@souvik900766 , one of the three measure. Assume [Volume] is a measure

 

Category = divide([Volume],CALCULATE([Volume],Filter(allselected(Table),Table[company_nm]="Full Industry")))

Category = divide([Volume],CALCULATE([Volume],Filter(all(Table[company_nm]),Table[company_nm]="Full Industry")))

Category = divide([Volume],CALCULATE([Volume],Filter(allselected(Table[company_nm]),Table[company_nm]="Full Industry")))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors