Forum Discussion
Anonymous
4 years agoNot applicable
Need help on DAX
Hi, I have a situation where I want to compare the product price by customer and display the results based on from selected batch and To selected batch as shown below. I have three different sc...
amitchandak
4 years agoSuper User
Anonymous , for that, create independent table using distinct values of Batch
Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE
Then you can have measure like
calculate(Sum(Table[Cost]), filter(Table, Table[Batch] in values(Batch1[Batch]) && not(Table[Batch] in values(Batch2[Batch]) ) ) )
Anonymous
4 years agoNot applicable
Hi Amit Chandak,
I am exremly sorry for the delayed response.
I think independent table many not work for my scenario. I think I need in memory table that should holds the data based batch ID selection in the slicer.
I followed article https://www.sqlbi.com/articles/understanding-data-lineage-in-dax/ but no success.
Does it make sense?
Thanks
Ravi Potturi