Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I have created a matrix by using below link:
https://community.powerbi.com/t5/Developer/Apply-Colors-to-selected-range-in-matrix/m-p/1074834
Now, my requirement is to create a summarized table/matrix based on the selected slicers by grouping colors, like below table:
Please help me with the solution.
Hi @vin26 ,
Are the measure1 and measure2 the counts of selected rows and selected columns?
Best Regards,
Jay
@Anonymous Hi Jay,
Thank you for the response, you may ignore the measures, I would like get the sum of each color like below or in any format would help:
Hi @vin26 ,
I see, you want calculate the sum of value for each color based on the slicer right?
I can see we have already get color for each unit, I'm guessing if we can create a table have a column with color in rows.
Then use like sumx(martix[value],color_measure=selectedvalue(new_table[color])) to get the sum value for each color.
Can you share some sample data so that i can do some test?
Best Regards,
Jay
Community Support Team _ Jay Wang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous please let me know if you got any idea to solve the issues.
Hi @Anonymous
Yes, you are right!.
Please find the sample file in https://community.powerbi.com/t5/Developer/Apply-Colors-to-selected-range-in-matrix/m-p/1074834 in which @v-lid-msft has done a sample file to get the colors.
@vin26 , Not sure I got it, But you can use "Show on row" in Matrix, which will move Measure on the row. And do not give anything on Row and give color on the column
Refer
https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/
For formatting
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
@amitchandakthank you for the quick response, I have already created the conditional formatting, like in above link. To make the color change I have used 10 slicers which are not connected to the data table. Coloring the matrix is working fine, but I am unable to get a sum of those colors, I would need to sum up those colored range.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.