Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi All,
I need to divide the value from one row as the denominator and the numerator as different rows of the same column. I would like to know how to do this in DAX. Below is the DAX
Product $ $ Share
Prod 1 100 Expected Value 100/100 = 1
Prod 2 60 60/100 = 0.6
Prod 3 40 40/100 = 0.4
Need to Know how to calculate the $ Share value and this value can change based on the time period and customer selected.
Any help would greatly be appreciated
Solved! Go to Solution.
Perhaps a calculated column like:
$ Share = [$] / MAX([$])
?
Hi @rampsaladi,
Do not write that formula in a column. Write it as a measure
Total=SUM(Data[Amount])
Share (%) = [Total]/CALCULATE([Total],ALL(Data[Product]))
Hope this helps.
Perhaps a calculated column like:
$ Share = [$] / MAX([$])
?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
84 | |
69 | |
68 | |
39 | |
39 |