Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
I am having one issue aggregating on report. I have a 'Amount' and percentage of a grand total columns on 'Amount'
field. My requirement is if average value in % is < 2% , display State as 'Others' and after that aggregation should happen based on
new states.
Below are my calculations/measures:
Column Name: Amount
% of Total_Amount = sum(Sheet9[AVG]) // Note: displayed as '% of grand total'
m_State = max(Sheet9[State])
m_pct_value = Sheet9[% of Total_Amount]/ calculate(Sheet9[% of Total_Amount],ALLSELECTED())
m_Updated_State = switch ( TRUE(), [m_pct_value] <= 0.02, "Others" , Sheet9[m_State] ) // Note: measure don't allow reference to table.column, so had to create a measure 'm_state' above
Sample Data file and this PBI Report s under this location (I don't see attach option)
https://drive.google.com/drive/folders/14VkqgAHUkuow43oAlhyS0R_FlZ3bSl1g?usp=sharing
if I dis-select 'State' and keep updated value of State (measure: m_updated_state), I am expecting proper aggregation on all states, including new value 'Others'. If you observe closely depending on aggregation on m_State (min/max) , it brings that State on subtotals in this case 'CA'.
Could you please help?
Thanks
Solved! Go to Solution.
Hi @Tina91
Please refer to attached sample file with a proposed solution.
Here I'm aggregating the perentages only. Properly aggregating other metrics in the same table visual could be tricky. Please let me know what is you next step.
Hi @Tina91
Please refer to attached sample file with a proposed solution.
Here I'm aggregating the perentages only. Properly aggregating other metrics in the same table visual could be tricky. Please let me know what is you next step.
and after that aggregation should happen based on new states.
What aggregation? What is your expected outcome?
Note that you cannot measure a measure. Materialize it, or create a new measure that includes the entire business logic.
Final output should be based on each state including 'Others'.
So here instead of 'State', we need to aggregate based on 'm_state_updated'.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |