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
M_SBS_6
Helper V
Helper V

Odd Value within Matrix table

Hi, 
I have the following measure used within my Matrix and I am getting an odd value that I don't quite understand. From the logic below I have certain criteria and if it matches that, I want it to output a 1 however, it outputs an amount of 90.00. If I set it to 2 I then get the output of 180.00. 

SUMX(apps, 
IF(apps[apps_month_period] = "Current Month" && 'apps'[app_category] in {"Test"}, 1 ,
'apps'[amount]))))

Any idea why this is happening please? I just want to set this to a value of 1. 
1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

It sounds like you have 90 rows in your apps table so it is returning a 1 and then suming them to give you 90.  Tyre the measure more like this and see if that helps.

Your Measure =
IF (
    SELECTEDVALUE ( apps[apps_month_period] ) = "Current Month"
        && SELECTEDVALUE ( 'apps'[app_category] ) IN { "Test" },
    1,
    'apps'[amount]
)

View solution in original post

3 REPLIES 3
jdbuchanan71
Super User
Super User

Did you take out the SUMX part?  

jdbuchanan71
Super User
Super User

It sounds like you have 90 rows in your apps table so it is returning a 1 and then suming them to give you 90.  Tyre the measure more like this and see if that helps.

Your Measure =
IF (
    SELECTEDVALUE ( apps[apps_month_period] ) = "Current Month"
        && SELECTEDVALUE ( 'apps'[app_category] ) IN { "Test" },
    1,
    'apps'[amount]
)

Thanks for your suggestion. I have tried adding in SELECTEDVALUE but I am still getting the same value of 90. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

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!

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