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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
James_Ma
Helper I
Helper I

Calculate the maximum choice score if 1 choice has no value

James_Ma_0-1729500364320.png

Hi, In the above choice group Ther are 4 options of which 3 have a value, however, Not Applicable has no value.

I have created the following measure

Max Unit Corrected =
SUMX(
SUMMARIZE(data_formanswer,
data_formanswer[data_name],
data_formanswer[data_answerchoiceid],
"Max Unit Corrected",
MAX(data_formchoiceitem[data_value])),
[Max Unit Corrected])

to calculate the Max score but if there is s choice group containing N/A then I want to remove all scoring from the maximum amount (see actual current max values below.

James_Ma_1-1729501146634.png

 

3 REPLIES 3
johnbasha33
Super User
Super User

@James_Ma 
try this
Max Unit Corrected =
SUMX(
FILTER(
SUMMARIZE(
data_formanswer,
data_formanswer[data_name],
data_formanswer[data_answerchoiceid],
"Max Unit Corrected", MAX(data_formchoiceitem[data_value])
),
[data_answerchoiceid] <> BLANK() && [data_answerchoiceid] <> "Not Applicable"
),
[Max Unit Corrected]
)
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!

Hi @johnbasha33 unfortunately thid did not work as this remoced the Max unit corrected score

James_Ma_0-1729592067996.png

 

Anonymous
Not applicable

Hi @James_Ma ,

Can you provide simple data for table 'data_formanswer','data_formchoiceitem' and present the expected results as a picture?

If you are unsure how to upload data please refer to

How to provide sample data in the Power BI Forum - Microsoft Fabric Community

 

Best Regards,
Wenbin Zhou

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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