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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Measure

Hello All,

 

I have column as data and measure Units Sold. I need to create Another measure mix based on units sold/Total

That means for first recor value is 34/108.

 

This is might be easy but I am not able to recall at this moment. I am facing issue to get that total in division part

DataUnits Soldmix
ABC34 
ABD57 
XYZ2 
DGF15 
FFD  
Total108 
1 ACCEPTED SOLUTION
fhill
Resident Rockstar
Resident Rockstar

Does it need to be a meausre?  Can you just add 'Units Sold' again (as a second column), then format the field as 'Percentage of Grand Total'?

 

fhill_0-1619709940080.png

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




View solution in original post

8 REPLIES 8
Anonymous
Not applicable

Hello, I have to find differencce of two fields. If go with this approach its okay to find percentage of fields.

but how to find the diffrence of two such fields?

 

Do we need to go with measures only?

negi007
Community Champion
Community Champion

@Anonymous create a measure like below

 

mix = SUM(mix_tab[Units Sold])/CALCULATE(SUM(mix_tab[Units Sold]),ALL(mix_tab[Data]))
 
negi007_0-1619710120600.png

 

let me know if it works for you. thanks




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Anonymous
Not applicable

This is not working I have to filter data in column data with another column value

fhill
Resident Rockstar
Resident Rockstar

Does it need to be a meausre?  Can you just add 'Units Sold' again (as a second column), then format the field as 'Percentage of Grand Total'?

 

fhill_0-1619709940080.png

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Anonymous
Not applicable

Hello, I have to find differencce of two fields. If I go with this approach its okay to find percentage of fields.

but how to find the diffrence of two such fields?

Anonymous
Not applicable

I got the result for that too in field formatting we can change "value decimal places".

Anonymous
Not applicable

Hello @fhill Thans....That's working as expected.. 
here I have one more doubt, how to remove digits after decimal point.

Here you go, select the new %GT Column under Field Formatting

 

fhill_0-1619713711601.png

 




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Helpful resources

Announcements
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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.