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 Everyone,
I am facing issue when i am trying to create DAX for calculate the date based on max Call closed.
Here in above example, if you see red circle , i need this date(date which is max OCB(OCB is nothing but Sb_contractcall))
When i am using my Below DAX,
it will give me Blank Value, Can you pleas ehelp to calculate DAX for this.here(OCB=Sb_contractcall Column, Date(ETA column)
Solved! Go to Solution.
Hi @Mahmoodul
Try this measure
Measure =
VAR maxOCB = CALCULATE(MAX('Table (2)'[OCB]),ALLSELECTED('Table (2)'[Date]))
RETURN
CALCULATE(FIRSTDATE('Table (2)'[Date]),ALL('Table (2)'),'Table (2)'[OCB]=maxOCB)
In your original measure, maybe no rows can meet the condition [Max_value]=selectedmax, so the result is blank.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
Hi @Mahmoodul
Try this measure
Measure =
VAR maxOCB = CALCULATE(MAX('Table (2)'[OCB]),ALLSELECTED('Table (2)'[Date]))
RETURN
CALCULATE(FIRSTDATE('Table (2)'[Date]),ALL('Table (2)'),'Table (2)'[OCB]=maxOCB)
In your original measure, maybe no rows can meet the condition [Max_value]=selectedmax, so the result is blank.
Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |