Forum Discussion
DAX help
- 8 years ago
Hi margeausoboti,
You want to create a calculated column to get the percentage? If it is, please create calculated columns using the fomulas, and check if it works fine.each type percentage = CALCULATE ( SUM ( Table[Count] ), ALLEXCEPT ( Table, Table[tipo] ) ) / SUMX ( ALL ( Table ), Table[Count] ) each Animal percentage = CALCULATE ( SUM ( Table[Count] ), ALLEXCEPT ( Table, Table[Animal] ) ) / SUMX ( ALL ( Table ), Table[Count] ) each Color percentage = CALCULATE ( SUM ( Table[Count] ), ALLEXCEPT ( Table, Table[Color] ) ) / SUMX ( ALL ( Table ), Table[Count] )Don't hesitate to ask if you have any other issues.
Best Regards,
Angelia
I think Vvelarde has a good answer, there is a difference because of the dataset sample. Check this picture below.
Thank you everyone for all of your help! I went back and checked it again, I had another filter on my chart. After removing the filter, Angelia's syntax is exactly what I needed to resolve the issue. Can anyone recommend a course that I can take to learn DAX? I am a new user of DAX and would liketo become a super user! Thanks!
- BILASolution8 years agoSolution Specialist
A time ago I found a good youtube channel about Power BI, every fridays there is a new topic about DAX. The Curbal woman has become my favourite : ) . Enjoy it !
- margeausoboti8 years agoAdvocate I
Thank you!