Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
I want to calculate the Herfindalh-Hirschmann Index (sum of market shares at square) by videogame publisher. In Power BI, i have 2 measures, the market share and the square of market share for each publisher. My calculations are good but the general total is false for the square of market share. Can you help me to correct the general total ?
My DAX code is this for the Market Share (correct calculation & total) :
Market Share = VAR Volume = SUM('Sales - Global'[Sales]) VAR AllVolume = CALCULATE(SUM('Sales - Global'[Sales]), ALL('Publisher')) RETURN DIVIDE(Volume, AllVolume)
My DAX code is this for the Squared Market Share. I ant to conserve the (*100) to better interprete the result. Calculations are good but the general total is incorrect. :
Market Share Square = VAR Volume = SUM('Sales - Global'[Sales]) VAR AllVolume = CALCULATE(SUM('Sales - Global'[Sales]), ALL('Publisher'[Publisher])) VAR MarketShare = DIVIDE(Volume, AllVolume)*100 RETURN MarketShare * MarketShare
Solved! Go to Solution.
@constantin_250 , Create this new measure on top of Market Share Square and use that in visual
Sumx(Values('Publisher'[Publisher]), [Market Share Square])
@constantin_250 , Create this new measure on top of Market Share Square and use that in visual
Sumx(Values('Publisher'[Publisher]), [Market Share Square])
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 38 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 83 | |
| 71 | |
| 38 | |
| 28 | |
| 25 |