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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Help with a Matrix Visual needing to show all data based on a condition in a slicer

Goodday,

 

I have been trying to get the following to work for some hours but i have been unable to.

 

I have data that looks like

 

Rollow1234_0-1687518151428.png

 

That makes a matrix visual that looks like

 

Rollow1234_1-1687518170853.png

 

Now i want to be able to select a month in a slicer, and then if that month has a  1 in the values, that it displays all months for that row.

 

A bit like when i select "Feb", that it displays

Rollow1234_2-1687518261042.png

 

And when i select jan that it displays

Rollow1234_3-1687518276639.png

 

 

Does anyone know how i would achieve this?

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous 

You can refer to the following example

1.You need to create a new table to as a filter

vxinruzhumsft_0-1687746648664.png

 

2.Then create two meausre

Measure = var a=FILTER(ALLSELECTED('Table'),[Month] in VALUES('Table 2'[Month])&&[Showup]=1)
return COUNTROWS(FILTER(a,[A] in VALUES('Table'[A])&&[B] in VALUES('Table'[B])))
Measure 2 = IF(ISFILTERED('Table 2'[Month]),IF([Measure]>0,CALCULATE(SUM('Table'[Showup]))),SUM('Table'[Showup]))

3.Then put the measure 2 to the visual matrix and put the month field of table2 to the slicer

Output

vxinruzhumsft_1-1687746804590.png

 

vxinruzhumsft_2-1687746813316.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi  @Anonymous 

You can refer to the following example

1.You need to create a new table to as a filter

vxinruzhumsft_0-1687746648664.png

 

2.Then create two meausre

Measure = var a=FILTER(ALLSELECTED('Table'),[Month] in VALUES('Table 2'[Month])&&[Showup]=1)
return COUNTROWS(FILTER(a,[A] in VALUES('Table'[A])&&[B] in VALUES('Table'[B])))
Measure 2 = IF(ISFILTERED('Table 2'[Month]),IF([Measure]>0,CALCULATE(SUM('Table'[Showup]))),SUM('Table'[Showup]))

3.Then put the measure 2 to the visual matrix and put the month field of table2 to the slicer

Output

vxinruzhumsft_1-1687746804590.png

 

vxinruzhumsft_2-1687746813316.png

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

Goodday! Thank you for the help, interesting measures for sure. Sadly enough i think i do something wrong because it doesnt seem to work. Empty values display as empty instead of 0, and because of that the slicer still doesnt work. 

 

Rollow1234_0-1687762746961.png

Rollow1234_1-1687762761806.pngRollow1234_2-1687762774464.png

 

Rollow1234_3-1687762784743.png

 

Any idea why?

 

 

 

Anonymous
Not applicable

Hi @Anonymous 

You need to put the "Month" column of sheet 1 to column of the matrix instead of putting the "Month" column of Month table to it.

vxinruzhumsft_0-1687766680749.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Anonymous
Not applicable

It works like a charm! Thank you very very much!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors