Forum Discussion
SK87
Helper III
4 years agoRelationship between two datasets through Measures (DAX)
Hi , Please help me on below problem: I have one data set in which brands and respective their respective search values are there. And I have another dataset in which I have done unpivoting and hav...
- Anonymous4 years ago
Hi SK87 ,
Here are the steps you can follow:
1. Create calculated table.
Slicer_Date = DISTINCT('Table2'[Attributes])2. Create measure.
Flag = var _select= SELECTEDVALUE('Slicer_Date'[Attributes]) var _mindate=MINX( FILTER(ALL('Table2'),'Table2'[Attributes]=_select), [Values]) return SWITCH( TRUE(), MAX('Table2'[Attributes])=_select&&MAX('Table2'[Values])>_mindate,1, MAX('Table2'[Attributes])<>_select&&MAX('Table2'[Values])>_mindate,1,0 )3. Place [Flag]in Filters, set is=1, apply filter.
4. Result:
If you need pbix, please click here.
If I have misunderstood your meaning, please provide your desired output and pbix without privacy information.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
SK87
Helper III
4 years ago
Thanks for your response.
I had shared an example table, brand names are not synchronised. I can't use left function for brand category.
brand names are of shoes like Nike, Adidas, Converse etc.So this solution is not correct for my dataset.
Kindly suggest something else if possible.