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
need_help-1324
New Member

a single value for column cannot be determine

I am just trying to make simple if statement to capture corresponding value "optionvalue" based on the name "optionname"

 

I wrote 

RESULT = IF(tablename[fieldname] = "value", sum(tablename[fieldname]))

actual

RESULT = IF(DataImport_Summary[OptionName], = "Entitlements", SUM(DataImport_Summary[OptionValue]))

need_help1324_0-1741728239425.pngneed_help1324_1-1741728268817.png

Thanks for your help in advance

3 ACCEPTED SOLUTIONS
bhanu_gautam
Super User
Super User

@need_help-1324 Try using

dax
RESULT = IF(
SELECTEDVALUE(DataImport_Summary[OptionName]) = "Entitlements",
SUM(DataImport_Summary[OptionValue]),
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

mdaatifraza5556
Super User
Super User

Hi @need_help-1324 
Can you please try this DAX.

Result =
    CALCULATE(
        SUM('Table'[OptionValue]),
        'Table'[OptionName] = "Entitlements"
    )

Screenshot 2025-03-12 123859.png

 

Please accept it as a solution if you got your solution

View solution in original post

divyed
Super User
Super User

Hello @need_help-1324 ,

 

You can use below dax to show desired value in a card : This way your value will be displayed if you click on optionName column

 

Result =
    CALCULATE(
        SUM('SampleTable'[OptionValue]),
        'SampleTable'[OptionName] = SELECTEDVALUE(SampleTable[OptionName])
    )
 
divyed_0-1744624480780.pngdivyed_1-1744624569796.png

I hope this helps.

 

Did I answer your query ?   Mark this as solution if this helps, Kudos are appreciated.

 

Kind Regards,

Neeraj

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/

View solution in original post

6 REPLIES 6
v-venuppu
Community Support
Community Support

Hi @need_help-1324 ,

I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.

Thank you.

Regards,

Rama U.

divyed
Super User
Super User

Hello @need_help-1324 ,

 

You can use below dax to show desired value in a card : This way your value will be displayed if you click on optionName column

 

Result =
    CALCULATE(
        SUM('SampleTable'[OptionValue]),
        'SampleTable'[OptionName] = SELECTEDVALUE(SampleTable[OptionName])
    )
 
divyed_0-1744624480780.pngdivyed_1-1744624569796.png

I hope this helps.

 

Did I answer your query ?   Mark this as solution if this helps, Kudos are appreciated.

 

Kind Regards,

Neeraj

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/
v-venuppu
Community Support
Community Support

Hi @need_help-1324 ,

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.

Thank you.

Regards,

Rama U.

v-venuppu
Community Support
Community Support

Hi @need_help-1324 ,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

 

Regards,

Rama U.

 

mdaatifraza5556
Super User
Super User

Hi @need_help-1324 
Can you please try this DAX.

Result =
    CALCULATE(
        SUM('Table'[OptionValue]),
        'Table'[OptionName] = "Entitlements"
    )

Screenshot 2025-03-12 123859.png

 

Please accept it as a solution if you got your solution
bhanu_gautam
Super User
Super User

@need_help-1324 Try using

dax
RESULT = IF(
SELECTEDVALUE(DataImport_Summary[OptionName]) = "Entitlements",
SUM(DataImport_Summary[OptionValue]),
0
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






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.