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
mistertobi_1997
Regular Visitor

complex filtering of one or more values

Hi there, 

I have a question regarding a "special" filtering in Power BI. 
For example, I have a table with an ID ("A123" and "B123"), with a Country ("Germany", "France", "Spain") and values (Germany: "A123" = 100, "B123" = 200; France: "A123" = 300, "B123" = 400; Spain: "A123" = 500, "B123" = 600). 
In my table, I have a high quantity of my two IDs (e.g. 10 times "A123" and 10 times "B123", but I would like to show only the value of one ID, depending on the selected country. 

Furthermore I would like to have the possibility to filter for an ID. For example if I filter A123 and Germany, I will receive the value 100. If i filter nothing, I would like to see the sum of every value for every country, but only once. In this case, this would be 100+200+300+400+500+600= 2100 and not (100+200+300+400+500+600)*10*10.

Is there a possibility or a function to implement this idea? 

Thanks in advance

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi, @mistertobi_1997 

Yes it's possible, You could use SUMX Function to create a measure.

Please share the sample data with the data structure.
Please see this post regarding How to Get Your Question Answered Quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.