Forum Discussion
Relationship between two datasets through Measures (DAX)
- 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 I don't think you need a relationship. Everything you need is already in the unpivot dataset. I just added a brand category group there. Check out this sample file: Relationship between two datasets through Measures (DAX) 2022-07-10.pbix
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.