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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
wl2020
Frequent Visitor

Dynamically outut array items to filter calculate sum

So I have a tableN_Dim_Account_Value, and I am trying to create a slicer with a custom list of indicators that filters the values. To do that, I created a separate, unconnected table that look like this:

 

table.PNG

Then I created a measure to calculate the sum of the value based on the row IDs

 

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

 

The formula would output the correct value if there is only a single row ID in the list. If there is more than one item, however, it stops outputting results. But if I type the exact same items into the formula, (i.e. {"VHR_2464994"; "VHR_2464255"}), I get the desired result except the formula wouldn't be dynamic then...is there any way to output the array item dynamically in a way that will achieve the desired result?

 

Thanks in advance for your help.

 

1 REPLY 1
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...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.