Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have a measure that works to calcualte the maximum date from a range of dates (amended, document uploaded, contacts modified) which I am using to identify the last time a record has been interacted with. By using measures I have been able to compare these using MAX and return a single value against each ID which is great, but Measures do not appear to work as slicers or when trying to report back on values on a Card visual.
As an example, I have:
ID | amended | document uploaded | contacts modified |
1 | 10/10/2023 | 01/02/2023 | 08/08/2021 |
2 | 05/06/2023 | 10/10/2023 | 08/09/2022 |
5 | 01/08/2020 | 09/12/2021 | 05/10/2023 |
1 | 01/01/2024 | ||
5 | 02/02/2024 |
So, for each ID the latest date would be:
1 - 01/01/2024
2 - 10/10/2023
5 - 02/02/2024
How would I approach this as a calculated column?
Solved! Go to Solution.
@Anonymous Measure is one that will respond to slicer value
measure should be like - Maxx({Max(Table[amended]),Max(Table[document uploaded] ), Max(Table[contacts modified])}, [Value])
Column will be like
calculate(Maxx({(Table[amended]),(Table[document uploaded] ), (Table[contacts modified])}, [Value]), filter(Table, Table[ID] = Earlier(Table[ID])))
@Anonymous Measure is one that will respond to slicer value
measure should be like - Maxx({Max(Table[amended]),Max(Table[document uploaded] ), Max(Table[contacts modified])}, [Value])
Column will be like
calculate(Maxx({(Table[amended]),(Table[document uploaded] ), (Table[contacts modified])}, [Value]), filter(Table, Table[ID] = Earlier(Table[ID])))
Thanks, for my Measures (as document uploaded is a separate table), I had used the MAX function to the the MAX of each and then compared those to get the final number at the end
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |