cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SantiNarv
New Member

Help with error in row subtotals

Hi Power BI Community,

Please your kind help giving me a hint about how to author the following measure so it does not generate an error at the moment of enabling the row subtotals.
I am going to use the data below to explain what the problem is.

Captura1.PNG

 

 

 

 

 

 

 

 

 

The measure I authored is this one: Measure=If(Values('Table'[Performance criteria])="%",10,20)

At the moment of including the data and the measure into a matrix (with row subtotals=disabled) there was no problem.

Captura2.PNG

 

 

 

 

 

 

However, when enabling the row subtotals, the following error message popped up.

Captura3.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

I am aware that the problem is the fact that the "Value" dax function in the measure is providing more than 1 value into the row subtotal cells within the matrix (% and ppk) and for that reason the error message pops up, but I have not being able to find other way to author that measure.

Thanks in advance for your help!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SantiNarv , Try like

 

Measure=If(max('Table'[Performance criteria])="%",10,20)

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

2 REPLIES 2
SantiNarv
New Member

Thanks so much!

amitchandak
Super User
Super User

@SantiNarv , Try like

 

Measure=If(max('Table'[Performance criteria])="%",10,20)

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors