Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
55 | |
37 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |