The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a simple difficulty calculating the percentage of each line in relation to the total of items. As the example below the fast calculation makes the correct account and my formula does not provide the same answer:
My calculate:
%total infos = 'Table'[Qtd de Infos da concorrência (Preços)]/CALCULATE(SUM('Table'[Qtd de Infos da concorrência (Preços)]);ALL('Table'[Qtd de Infos da concorrência (Preços)]))
Thanks for the help.
Solved! Go to Solution.
Hi @Gislele
I tried this slight variation
%total infos = DIVIDE( CALCULATE( SUM('Table'[Qtd de Infos da concorrência (Preços)]) ) , CALCULATE( SUM('Table'[Qtd de Infos da concorrência (Preços)]), ALL('Table') ) )
And this is the result I get
Hi @Gislele
I tried this slight variation
%total infos = DIVIDE( CALCULATE( SUM('Table'[Qtd de Infos da concorrência (Preços)]) ) , CALCULATE( SUM('Table'[Qtd de Infos da concorrência (Preços)]), ALL('Table') ) )
And this is the result I get
Your help solved some of my problem, thank you!
If you can help me with one more doubt I will be grateful. In this same table I have a filter related to the month, and when I do it it is not obeyed. I tried to use ALL instead of ALLEXCEPT for the month column, but the calculation works only when the filter is made in this case.
What I would need is the calculation with both the filter performed both when it is not selected. Below are examples with ALL and ALLEXCEPT:
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
95 | |
94 | |
85 | |
69 | |
65 |
User | Count |
---|---|
241 | |
124 | |
121 | |
81 | |
79 |