Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vin26
Resolver I
Resolver I

Summarizing the values based on the multiple slicer selections which are not conned to the table

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:

PBI_screenshot.JPG

 

 

 

 

 

Please help me with the solution.

 

7 REPLIES 7
v-jayw-msft
Community Support
Community Support

Hi @vin26 ,

 

Are the measure1 and measure2 the counts of selected rows and selected columns?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

@v-jayw-msft  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:

PBI_screenshot2.jpg

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.

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hi @v-jayw-msft please let me know if you got any idea to solve the issues. 

Hi @v-jayw-msft 

 

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.

 

 

amitchandak
Super User
Super User

@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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.