Forum Discussion
Max by group by not working
- 6 years ago
I just opened a new power BI and connected, my intial formula works!
max date = CALCULATE(MAX(Sheet1[changed date]),ALLEXCEPT(Sheet1,Sheet1[employee]))Thanks amit for your time and suggestions.
Ref this. Seems like same case
https://community.powerbi.com/t5/Desktop/Calculate-subtotal-using-dax/td-p/564402
Hi,
I am a newbie to power BI and DAX, couldn't understand where the test107measure column/measure came from in the formula ?
@ https://community.powerbi.com/t5/Desktop/Calculate-subtotal-using-dax/td-p/564402
Test107 = CALCULATE(SUM(Test107Measure[Sales]),FILTER(ALL(Test107Measure),Test107Measure[Client]=SELECTEDVALUE(Test107Measure[Client])))
- HippySippy6 years agoFrequent Visitor
I also noted that this case is simillar to me but works :(
https://community.powerbi.com/t5/Desktop/Filter-only-highest-value-by-category/m-p/118551#M50044
Any hhelp will be greatly appreciated.
- amitchandak6 years ago
Super User
Should be something like this in your case
Max Employee = CALCULATE(max(sheet1[change Date]),FILTER(ALL(sheet1),sheet1[employee]=SELECTEDVALUE(sheet1[employee])))
So it might work as a measure
- HippySippy6 years agoFrequent Visitor
I just opened a new power BI and connected, my intial formula works!
max date = CALCULATE(MAX(Sheet1[changed date]),ALLEXCEPT(Sheet1,Sheet1[employee]))Thanks amit for your time and suggestions.