Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi
Thanks
Solved! Go to Solution.
Hi @HishamAT ,
I can only think of a simpler way. The first is to directly modify the numbers in the formula. Another way is to use slicers.
Measure = -SELECTEDVALUE('Table'[Column1])
Measure 2 = EDATE ( MAX ( 'Table 2'[Date] ), [Measure] )
EDATE function (DAX) - DAX | Microsoft Learn
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
hi @HishamAT
seems not very doable. could you also provide some sample data and how you would like to present the result?
- NHC = 7.6 at year 2022 on the month of December
- NHC = 10.4 at year 2019 on the month of December
Hi @HishamAT ,
Please have a try.
Create a measure.
measure =
VAR _year =
EDATE ( MAX ( 'Table 2'[Date] ), -36 )
VAR _value =
CALCULATE (
MAX ( 'TABLE'[NHC COLUMN NAME] ),
FILTER ( ALL ( TABLE ), 'TABLE'[DATE] = SELECTEDVALUE ( 'TABLE'[DATE] ) )
)
RETURN
MAX ( 'TABLE'[NHC COLUMN NAME] ) - _value
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Great Sir, is that any way to make the 36 a dynamic date such 1 ,2, 3 .... etc ( As requested by the user ) .
Hi @HishamAT ,
I can only think of a simpler way. The first is to directly modify the numbers in the formula. Another way is to use slicers.
Measure = -SELECTEDVALUE('Table'[Column1])
Measure 2 = EDATE ( MAX ( 'Table 2'[Date] ), [Measure] )
EDATE function (DAX) - DAX | Microsoft Learn
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your support , It works fine.
User | Count |
---|---|
13 | |
8 | |
8 | |
7 | |
5 |
User | Count |
---|---|
23 | |
15 | |
15 | |
10 | |
7 |