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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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

 

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.