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.
I have a dataset that I've summarized by card, reg date, and first purchase date. The card will usually repeat in this data. I want to create a calculated column that flags the row as containing max purchase date among all values in the table with THAT current card number.
Here's one view where I'm filtering on a specific card:
Ideally, the first row would get a 1 in the maxreg row but because it's applying max to the whole table not just the rows with that card number there is a 0 because there are cards with later registration dates in the entire set of data.
I want to be able to essentially weed the entire table down (like a calculated table) to only a unique card number that corresponds to the latest reg and earliest purchase. If there is a column that says if(maxreg && minpur, 1, 0) that would be easy to only include those values in any futher analysis.
@Anonymous
Just now I read your problem statement and understand you want a calculated column hence my earlier doesnt aply there!
Proud to be a Super User!
I'm a little confused wouldn't including all(tablename) do exactly what max(column) would do? Or is this one of those context transition things? In any case, if this is what you had in mind for the MaxReg column it returns an error:
@Anonymous
Try this Calculate(max(column), all(tablename)) to get the relative max values
Proud to be a Super User!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |