Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi,
Can anyone help me on how can i convert my calculated column into a measure. The main objective is to get the Daily %_Plan and %_Actual. I have measure for Planhrs and DailyEarned but other column i have trouble in changing to measure.
Solved! Go to Solution.
Hiii @AllanBerces
Overall_Cum_Plan_Hrs =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = SELECTEDVALUE('Table'[Type])
RETURN
CALCULATE(
SUM('Table'[Plan Hrs]),
'Table'[PlanDate] <= CurrentDate,
'Table'[Type] = CurrentSubTask
)
Overall_Total_Plan_Hrs =
CALCULATE(
SUM('Table'[Plan Hrs]),
ALLEXCEPT('Table', 'Table'[Type])
)
Daily Plan % Measure
Overall_Percent_Daily_Plan =
DIVIDE(
[Overall_Cum_Plan_Hrs],
[Overall_Total_Plan_Hrs]
)
Overall_Cum_Earned =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = SELECTEDVALUE('Table'[Type])
RETURN
CALCULATE(
SUM('Table'[Overall_Earned w/_Negative]),
'Table'[PlanDate] <= CurrentDate,
'Table'[Type] = CurrentSubTask
)
Did I answer your question? Mark my post as a solution! And Kudos are appreciated
@AllanBerces Here’s how you can convert each of your calculated columns into measures
Overall(S)_Cum_Plan_Hrs:
Overall(S)_Cum_Plan_Hrs =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = MAX('Table'[Type])
RETURN
CALCULATE(
SUM('Table'[Plan Hrs]),
FILTER(
ALL('Table'),
'Table'[PlanDate] <= CurrentDate && 'Table'[Type] = CurrentSubTask
)
)
Overall(S)_Total_Column =
CALCULATE(
SUM('Table'[Plan Hrs]),
ALL('Table'[PlanDate])
)
Overall_%_Daily Plan =
DIVIDE(
[Overall(S)_Cum_Plan_Hrs],
[Overall(S)_Total_Column]
)
Overll(S)_Cum Earned =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = MAX('Table'[Type])
RETURN
IF(
CurrentDate <= TODAY(),
CALCULATE(
SUM('Table'[Overall_Earned w/_Negative]),
FILTER(
ALL('Table'),
'Table'[PlanDate] <= CurrentDate && 'Table'[Type] = CurrentSubTask
)
)
)
Proud to be a Super User! |
|
WNTA_Combined_Earned_Measure =
VAR WeekNum = SELECTEDVALUE('Table'[PlanDate])
RETURN
SUMX(
FILTER(
ALL('Table'),
'Table'[Type] IN {"Maintenance", "Project"} &&
'Table'[PlanDate] = WeekNum
),
'Table'[Overall_Earned w/_Negative]
) +
IF(
SELECTEDVALUE('Table'[Type]) = "Overall",
0,
SELECTEDVALUE('Table'[Overall_Earned w/_Negative])
)
Here you go!!
Kuddos are appreciated!!
@AllanBerces Try using
DAX
WNTA_Combined_Earned_Measure =
IF(
SELECTEDVALUE('Table'[Type]) = "Overall",
VAR WeekNum = SELECTEDVALUE('Table'[PlanDate])
RETURN
SUMX(
FILTER(
'Table',
'Table'[Type] IN {"Maintenance", "Project"} && 'Table'[PlanDate] = WeekNum
),
'Table'[Overall_Earned w/_Negative]
),
SUM('Table'[Overall_Earned w/_Negative])
)
Proud to be a Super User! |
|
@AllanBerces Here’s how you can convert each of your calculated columns into measures
Overall(S)_Cum_Plan_Hrs:
Overall(S)_Cum_Plan_Hrs =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = MAX('Table'[Type])
RETURN
CALCULATE(
SUM('Table'[Plan Hrs]),
FILTER(
ALL('Table'),
'Table'[PlanDate] <= CurrentDate && 'Table'[Type] = CurrentSubTask
)
)
Overall(S)_Total_Column =
CALCULATE(
SUM('Table'[Plan Hrs]),
ALL('Table'[PlanDate])
)
Overall_%_Daily Plan =
DIVIDE(
[Overall(S)_Cum_Plan_Hrs],
[Overall(S)_Total_Column]
)
Overll(S)_Cum Earned =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = MAX('Table'[Type])
RETURN
IF(
CurrentDate <= TODAY(),
CALCULATE(
SUM('Table'[Overall_Earned w/_Negative]),
FILTER(
ALL('Table'),
'Table'[PlanDate] <= CurrentDate && 'Table'[Type] = CurrentSubTask
)
)
)
Proud to be a Super User! |
|
Hiii @AllanBerces
Overall_Cum_Plan_Hrs =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = SELECTEDVALUE('Table'[Type])
RETURN
CALCULATE(
SUM('Table'[Plan Hrs]),
'Table'[PlanDate] <= CurrentDate,
'Table'[Type] = CurrentSubTask
)
Overall_Total_Plan_Hrs =
CALCULATE(
SUM('Table'[Plan Hrs]),
ALLEXCEPT('Table', 'Table'[Type])
)
Daily Plan % Measure
Overall_Percent_Daily_Plan =
DIVIDE(
[Overall_Cum_Plan_Hrs],
[Overall_Total_Plan_Hrs]
)
Overall_Cum_Earned =
VAR CurrentDate = MAX('Table'[PlanDate])
VAR CurrentSubTask = SELECTEDVALUE('Table'[Type])
RETURN
CALCULATE(
SUM('Table'[Overall_Earned w/_Negative]),
'Table'[PlanDate] <= CurrentDate,
'Table'[Type] = CurrentSubTask
)
Did I answer your question? Mark my post as a solution! And Kudos are appreciated
Hi @Khushidesai0109 @bhanu_gautam if you dont mine can pls help me also on this calculated column to convert into measure
@AllanBerces Try using
DAX
WNTA_Combined_Earned_Measure =
IF(
SELECTEDVALUE('Table'[Type]) = "Overall",
VAR WeekNum = SELECTEDVALUE('Table'[PlanDate])
RETURN
SUMX(
FILTER(
'Table',
'Table'[Type] IN {"Maintenance", "Project"} && 'Table'[PlanDate] = WeekNum
),
'Table'[Overall_Earned w/_Negative]
),
SUM('Table'[Overall_Earned w/_Negative])
)
Proud to be a Super User! |
|
WNTA_Combined_Earned_Measure =
VAR WeekNum = SELECTEDVALUE('Table'[PlanDate])
RETURN
SUMX(
FILTER(
ALL('Table'),
'Table'[Type] IN {"Maintenance", "Project"} &&
'Table'[PlanDate] = WeekNum
),
'Table'[Overall_Earned w/_Negative]
) +
IF(
SELECTEDVALUE('Table'[Type]) = "Overall",
0,
SELECTEDVALUE('Table'[Overall_Earned w/_Negative])
)
Here you go!!
Kuddos are appreciated!!
Hi @bhanu_gautam @Khushidesai0109 thank you very much for the help, working as i need.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |