Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi Team,
how to calculate below fomula from attached below table,
Workday | (Monday+Tuesday)-Sunday | (Monday+Tuesday)-Sunday |
actual | Budget | |||
Sunday | 10 | 15 | ||
Monday | 15 | 20 | ||
Tuesday | 35 | 45 |
Output:
Workday | 40 | 50 |
Thanks in advance.
Solved! Go to Solution.
Workday Calculation Actual =
VAR MondayActual = CALCULATE(SUM(Workdays[Actual]), Workdays[Workday] = "Monday")
VAR TuesdayActual = CALCULATE(SUM(Workdays[Actual]), Workdays[Workday] = "Tuesday")
VAR SundayActual = CALCULATE(SUM(Workdays[Actual]), Workdays[Workday] = "Sunday")
RETURN
(MondayActual + TuesdayActual) - SundayActual
Similarly, you can create a budget.
The Card/Table will display the calculated values of 40 for Actual and 50 for Budget.
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Workday Calculation Actual =
VAR MondayActual = CALCULATE(SUM(Workdays[Actual]), Workdays[Workday] = "Monday")
VAR TuesdayActual = CALCULATE(SUM(Workdays[Actual]), Workdays[Workday] = "Tuesday")
VAR SundayActual = CALCULATE(SUM(Workdays[Actual]), Workdays[Workday] = "Sunday")
RETURN
(MondayActual + TuesdayActual) - SundayActual
Similarly, you can create a budget.
The Card/Table will display the calculated values of 40 for Actual and 50 for Budget.
💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
78 | |
52 | |
37 | |
36 |
User | Count |
---|---|
104 | |
85 | |
47 | |
44 | |
43 |