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! Request now

Reply
Anonymous
Not applicable

Dynamic groups matrix

Hi 

 

I have a measure that is working when used in a table. However I want to use it in a matrix but that is not working.

I get the message: "A table of multiple values was supplied where a single value was expected". 

 

Any who have an idea how to fix this? 

 

The measure:

Revenue Sum =
IF( HASONEVALUE('Client Rev.'[Min]); CALCULATE( 'Data'[Revenue]; FILTER( 'Unique customers'; [Client_revenue] >= VALUES('Client Rev.'[Min]) && [Client_revenue] < VALUES('Client Rev.'[Max])); FILTER( 'Unique customers'; [Revenue by size] >= VALUES('Revenue'[Min]) && [Revenue by size] < VALUES('Revenue'[Max])) ) ; 'Data'[Revenue])

A table to the left and a matrix to the right with the same measure and columns: 

Capture.JPG

1 ACCEPTED SOLUTION
richbenmintz
Resident Rockstar
Resident Rockstar

@Anonymous ,

It look like you have not gaurded against multiple values for 

'Revenue'[Min] and 'Revenue'[Max], try the formula below

 

Revenue Sum =
IF( HASONEVALUE('Client Rev.'[Min]) && HASONEVALUE('Revenue'[Min]) && HASONEVALUE('Revenue'[Min]); CALCULATE( 'Data'[Revenue]; FILTER( 'Unique customers'; [Client_revenue] >= VALUES('Client Rev.'[Min]) && [Client_revenue] < VALUES('Client Rev.'[Max])); FILTER( 'Unique customers'; [Revenue by size] >= VALUES('Revenue'[Min]) && [Revenue by size] < VALUES('Revenue'[Max])) ) ; 'Data'[Revenue])

 



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


View solution in original post

2 REPLIES 2
richbenmintz
Resident Rockstar
Resident Rockstar

@Anonymous ,

It look like you have not gaurded against multiple values for 

'Revenue'[Min] and 'Revenue'[Max], try the formula below

 

Revenue Sum =
IF( HASONEVALUE('Client Rev.'[Min]) && HASONEVALUE('Revenue'[Min]) && HASONEVALUE('Revenue'[Min]); CALCULATE( 'Data'[Revenue]; FILTER( 'Unique customers'; [Client_revenue] >= VALUES('Client Rev.'[Min]) && [Client_revenue] < VALUES('Client Rev.'[Max])); FILTER( 'Unique customers'; [Revenue by size] >= VALUES('Revenue'[Min]) && [Revenue by size] < VALUES('Revenue'[Max])) ) ; 'Data'[Revenue])

 



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

@richbenmintz  Great! Thnx!

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