Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi everyone,
At the moment I have this bar chart, but I would like to create an additional column where I get all the responses in a stacked bar, aggregated by age. How would I go about doing this?
Thank you
Sara
Solved! Go to Solution.
@singarfield,
You can create a measure using similar DAX as below. Then use Line and stacked column chart to dispaly the data, or drag the measure to tooltips of your current bar chart.
Measure = CALCULATE([yourmeasure],ALLEXCEPT(Table,Table[Age]))
Regards,
Lydia
@singarfield,
Right-click your table, and select "New Measure", then apply above formula.
Regards,
Lydia
@singarfield,
You can create a measure using similar DAX as below. Then use Line and stacked column chart to dispaly the data, or drag the measure to tooltips of your current bar chart.
Measure = CALCULATE([yourmeasure],ALLEXCEPT(Table,Table[Age]))
Regards,
Lydia
Hi,
Im still very new to power BI, so this doesn't really tell me where I would go to create this value. Could you give more of a step-by-step answer, please?
Thank you
Sara
@singarfield,
Right-click your table, and select "New Measure", then apply above formula.
Regards,
Lydia
Thank you!
Sara
I don't think you have an option to add Grand Total in a bar chart. A workaround would be the following:
1. Create a new dimension table Age:
Age New = UNION (ROW("Age", "Total"), VALUES(Table[Age]))
2. Create a relationship between the Age column in this new dimension table and your fact table.
3. Create a new measure:
Measure New = SWITCH ( SELECTEDVALUE ( 'Age New'[Age] ), "Total", CALCULATE ( [Measure], ALL ('Age New'[Age]) ), [Measure] )
4. Use this Measure New and Age New dimension in your chart.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
143 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
218 | |
88 | |
83 | |
65 | |
56 |