We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
I have following data where there are multiple claim IDs.
For a single claim ID there are different dates and different claim types.
I need to get the Minimum date for a particular Claim ID and Claim Type.
Eg. I need following result in a table.
How to get this through DAX? Do I need to create a measure or a calculated column?
Solved! Go to Solution.
try this measure,
Min Claim Date = CALCULATE(
MIN('Table'[Claim Date]),
ALLEXCEPT('Table','Table'[Claim ID],'Table'[Claim Type]))
Hello @Arul
Thank you. I got the values.
Can you also tell how I can get Max along with Min dates? With the same logic?
hello @Vishruti
use below dax for calculated column;
MinimumDate =
VAR MinDate = CALCULATE(MIN('Claim Table'[Date]), ALLEXCEPT('Claim Table', 'Claim Table'[Claim ID], 'Claim Table'[Claim Type]))
RETURN IF(ISBLANK(MinDate), BLANK(), MinDate)
use below dax for measure:
MinimumDateMeasure =
MINX(
VALUES('Claim Table'[Claim ID] & "-" & 'Claim Table'[Claim Type]),
CALCULATE(MIN('Claim Table'[Date]))
)
https://analyticpulse.blogspot.com
User | Count |
---|---|
62 | |
59 | |
46 | |
35 | |
31 |
User | Count |
---|---|
86 | |
71 | |
57 | |
51 | |
46 |