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
slam
Frequent Visitor

find percentage with specific number

Please help me I want to calcute percentage with z (90)( e.g 90/12 a row) in power bi, how to write dax

itemvalua%   
a1213.3 
b1415.6
c1516.7
d1617.8
e2628.9
z90 

best regards

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@slam ,

 

new column = divide([valua], sumx(filter(Table, Table[item] ="z"),[valua]) )

 

 

or a measure

new column = divide(sum(Table[valua]), sumx(filter(allselected(Table), Table[item] ="z"),[valua]) )

View solution in original post

slam
Frequent Visitor

Thank you so much!

View solution in original post

2 REPLIES 2
slam
Frequent Visitor

Thank you so much!

amitchandak
Super User
Super User

@slam ,

 

new column = divide([valua], sumx(filter(Table, Table[item] ="z"),[valua]) )

 

 

or a measure

new column = divide(sum(Table[valua]), sumx(filter(allselected(Table), Table[item] ="z"),[valua]) )

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.