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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
wl2020
Frequent Visitor

Filter using values in a table

 

 

So I created a table to filter the calculate results. The table looks like this:

 

table.PNG

 

CALCULATE(SUM(LN_Dim_Account_Value[value]); LN_Dim_Account_Value[UID] IN {[lnDimUID]})

 

The idea is that the user will click on a dropdown menu in a slicer, and then the formula calculates the sum of the value column based on the column IDs I provide in the table. The formula works for all items with a single column ID, but when there are more than one (the one separated by ";"), the formula stops working. 

 

Any idea how to make the formula work for cells with more than one value?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi.

You should never store non-atomic entities in one field. If you have the above situation, you have to create a mapping (a bridge table) between your records and all the ID's that are present in your string for that record. You have a Many-2-Many situation here.

Best
D

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi.

You should never store non-atomic entities in one field. If you have the above situation, you have to create a mapping (a bridge table) between your records and all the ID's that are present in your string for that record. You have a Many-2-Many situation here.

Best
D
Greg_Deckler
Community Champion
Community Champion

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



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I apologize. What should I do to improve the post? I can't post the whole table unfortunately but am happy to include more details. 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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