Starting December 3, join live sessions with database experts and the Microsoft product team to learn just how easy it is to get started
Learn moreGet certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now
I am trying to calculate the average for the column below but only want to include the positive values. I have also attached the formula I thought would work but it keeps giving me an error. I also tried using calculate at the beggining of my formula and using >0 as a filter but that didnt work either. Any help is greatly appreciated!
Solved! Go to Solution.
Hi @benvett14 ,
You need to write your DAX as follows:
payCycle2 = CALCULATE(AVERAGE(barth[pay cycle]), FILTER(ALLSELECTED(barth), barth[pay cycle] > 0))
Thanks,
Pragati
Hi @benvett14 ,
If (Barth[pay cycle] > 0 , AVERAGE(Barth[pay cycle]))
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @benvett14 ,
You need to write your DAX as follows:
payCycle2 = CALCULATE(AVERAGE(barth[pay cycle]), FILTER(ALLSELECTED(barth), barth[pay cycle] > 0))
Thanks,
Pragati
Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.
User | Count |
---|---|
86 | |
84 | |
83 | |
67 | |
49 |
User | Count |
---|---|
131 | |
111 | |
96 | |
71 | |
67 |