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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

SUMX with FILTER returning blank values in scatter plot

Hi there PBI Community!

 

I am trying to create a measure that sums up the values in one column, after applying two filters on another column. I am using this formula as the y-axis for a scatter plot:

 

Y-Axis Values = SUMX(FILTER ('Financial_Table', 'Financial_Table'[Category] = "Promotions" && 'Financial_Table'[Category] = "Discounts"),'Financial_Table'[Value])
 
The problem is that this formula is returning blank values (no values) on the scatter plot. Is there another way I could sum up the values in one column and apply two filters to another column within a DAX formula?
1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

@Anonymous If you want to sum up the values with Category "Promotions" and "Discounts", please replace "&&" with "||" in your DAX formula like below.

Y-Axis Values = SUMX(FILTER ('Financial_Table', 'Financial_Table'[Category] = "Promotions" || 'Financial_Table'[Category] = "Discounts"),'Financial_Table'[Value])

 

Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

@Anonymous If you want to sum up the values with Category "Promotions" and "Discounts", please replace "&&" with "||" in your DAX formula like below.

Y-Axis Values = SUMX(FILTER ('Financial_Table', 'Financial_Table'[Category] = "Promotions" || 'Financial_Table'[Category] = "Discounts"),'Financial_Table'[Value])

 

Community Support Team _ Jing Zhang
If this post helps, please consider Accept it as the solution to help other members find it.

Anonymous
Not applicable

You filter financial table WHERE Category = promotion AND Category = Discounts

I dont think you can have 1 record where both checks are true

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.