Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Everyone
I would like to achieve the rollup for each Category - with the max date where color is not equal to red
Below is the sample data -
I am getting the wrong highlighted dates - (it should filter out the date where it is red)
Result Expected For highlighted date-
A - 11/18/2021
B - 10/11/2021
Thanks in advance. Would really appreciate the help.
Solved! Go to Solution.
Try this:
Lastest Date =
IF (
HASONEVALUE ( Table1[Color] ),
MAX ( Table1[Date] ),
CALCULATE ( MAX ( Table1[Date] ), Table1[Color] <> "Red" )
)
Try this:
Lastest Date =
IF (
HASONEVALUE ( Table1[Color] ),
MAX ( Table1[Date] ),
CALCULATE ( MAX ( Table1[Date] ), Table1[Color] <> "Red" )
)
@AlexisOlson -
Using the above measure you suggested is taking longer to process the data.
Is there a way to use any other formula instead?
I also learnt that the Hasonevalue takes longer time to process the query.
See if this works any faster:
Lastest Date =
IF (
HASONEVALUE ( Table1[Color] ),
MAX ( Table1[Date] ),
CALCULATE ( MAX ( Table1[Date] ), KEEPFILTERS ( Table1[Color] <> "Red" ) )
)
Thanks a lot. This is so helpful.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |