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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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