Forum Discussion

Astorre72's avatar
Astorre72
Frequent Visitor
6 years ago
Solved

Create filter based on filtered dataset result AND use filtered value as a constant in measure

Hi guys!   With this link you can download my dummy dataset: https://www.dropbox.com/s/rh27eu9rvhbs1hg/DUMMY.xlsx?dl=0   I have a huge dataset, and this Excel file represents the structure of it...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Astorre72 ï¼Œ

    You can follow the below steps to achieve it:

    1. Create a calculated table Table 2

    Table 2 = SUMMARIZE('Table','Table'[ID],'Table'[X])

    2. Use the field X of Table 2 as slicer

    3. Create a measure to get Z

    Z? = (SELECTEDVALUE('Table 2'[X])- MAX('Table'[X]))*MAX('Table'[Y])

    I created a sample pbix file, you can get it from this link.

    Best Regards

    Rena