Forum Discussion
gcam032
Helper I
6 years agoCalculate within group % over xaxis
Hi All, Haven't found the exact answer in the forums that seems to work for what I need. I have a chart (see image) where the xaxis is a categorical variable (0, 100, 200, 300, 400.... 1000) gro...
- 6 years ago
Hi gcam032 ,
1.Create a dim table:
dimdate = ADDCOLUMNS(CALENDARAUTO(),"YEARMONTH",YEAR([Date])*100+MONTH([Date]))2.Create a measure:
Measure = CALCULATE(SUM('Table'[value])) / CALCULATE(SUM('Table'[value]),ALLEXCEPT('Table','Table'[Category]))Finally you will see:
For the related .pbxi file,pls click here.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Greg_Deckler
Community Champion
6 years agoDivide by 100? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490