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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
diazjp
Frequent Visitor

Vlookup from a measure result in matrix

i have a dashboard from excel like this

diazjp_0-1672043715277.png

 

"Total SKU XML" field is vlookup from "Total SKU" field

but my dashboard is like this, i dont know how to vlookup from measure's result in the visual

diazjp_2-1671775552163.png

 

Total SKU in AreaPricing is

= CALCULATE( DISTINCTCOUNT(CSDPVSXML[ProductId]),ALLEXCEPT('DT Active','DT Active'[Status]), NOT( ISBLANK(CSDPVSXML[ProductId])))
 
Total SKU in other table
= CALCULATE( DISTINCTCOUNT(CSDPVSXML[ProductId]), NOT( ISBLANK(CSDPVSXML[ProductId])))
 
Total SKU XML
= CALCULATE( DISTINCTCOUNT(CSDPVSXML[ProductId]), NOT( ISBLANK(CSDPVSXML[ProductId])), REMOVEFILTERS('DT Active'[Status]))
 
is there a way so the filter context for "Total SKU XML" is based on Area Pricing so it will show 18 like Area Pricing table ?

Thank you in advance.
 
 

 

 

2 REPLIES 2
amitchandak
Super User
Super User

@diazjp , we have lookupvalue,

 

But It might need an approach to revisit based on what you need

https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

is there a way to use row filter of AreaofPricing instead of sales level fromat 3 ?
the lookup function only lookup into table, not the result of a measure

 

do i need to paste the data in here or is there another way to show the sample data ?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors