Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello guys,
I have some maybe easy question for you, but I am new in DAX and its difficult for me.
I want to create one mesare without adding new column.
Measure shoul calculate average of end_date - start_date. But there is one condition. If differece between end_date and start_date smaller than two (end_date - start_date < 2) , that row should not count towards the average.
And, at the end I want to Measure be in form on integer.
Thank you guys! 😄
Solved! Go to Solution.
AVERAGEX(Table,VAR _diff=Table[End date]-Table[Start Date] RETURN IF(_diff>2,_diff))
AVERAGEX(Table,VAR _diff=Table[End date]-Table[Start Date] RETURN IF(_diff>2,_diff))
User | Count |
---|---|
10 | |
8 | |
5 | |
5 | |
4 |