Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have 2 calculate formulas:
Formula 1:
Solved! Go to Solution.
Hi @Anonymous
The measure
Emp Exits with variable =
VAR EmpExits =
SUM ( Emp_Exits[Employee Exits] )
RETURN
CALCULATE (
EmpExits,
Emp_Exits[MonthNo] <= MAX ( Emp_Exits[MonthNo] ),
ALL ( Emp_Exits[Month Name] )
)
is exactly the same as
Emp Exits with variable =
SUM ( Emp_Exits[Employee Exits] )
The reason is that variables are only evaluated once therefore cannot be recalculated as measures inside a CALCULATE statement. Thus only the value of the first measure is always returned.
Hi @Anonymous
The measure
Emp Exits with variable =
VAR EmpExits =
SUM ( Emp_Exits[Employee Exits] )
RETURN
CALCULATE (
EmpExits,
Emp_Exits[MonthNo] <= MAX ( Emp_Exits[MonthNo] ),
ALL ( Emp_Exits[Month Name] )
)
is exactly the same as
Emp Exits with variable =
SUM ( Emp_Exits[Employee Exits] )
The reason is that variables are only evaluated once therefore cannot be recalculated as measures inside a CALCULATE statement. Thus only the value of the first measure is always returned.
Hey,
Please try this one!!
The MonthName column is derived from Month column using formula FORMAT([Month],"MMM").
DATESYTD is working fine with Month but not working with MonthName column which is derived from Month column:
Try to create a seperate date table as shown below then apply your DAX accordingly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
46 | |
27 | |
20 | |
12 | |
8 |
User | Count |
---|---|
75 | |
52 | |
46 | |
15 | |
12 |