Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello all,
In my PBI file i am changing Calculated Columns to Measures. Am struggling to change the following:
At this moment i have a Calculated Column:
Solved! Go to Solution.
Hi @JimmyBos - You need to ensure that the measure respects the row context like the calculated column
use the below measure:
Uitgegeven Measure =
VAR Checked = MAX(POStuklijst[Checked])
VAR Completed = MAX(POStuklijst[Completed])
RETURN
IF(Checked - Completed = 0, "JA", "NEE")
If you're seeing extra rows that aren't used in the project, try using a measure that excludes them
Uitgegeven Measure =
VAR Checked = MAX(POStuklijst[Checked])
VAR Completed = MAX(POStuklijst[Completed])
RETURN
IF( NOT(ISBLANK(Checked)) && NOT(ISBLANK(Completed)),
IF(Checked - Completed = 0, "JA", "NEE"),
BLANK()
)
Proud to be a Super User! | |
Hi! @JimmyBos
Please try this:
Uitgegeven Measure =
IF(
SUMX(
POStuklijst,
IF(POStuklijst[Checked] - POStuklijst[Completed] = 0, 1, 0)
) = COUNTROWS(POStuklijst),
"JA",
"NEE"
)
OR
Uitgegeven Measure =
VAR CheckedSum = SUM(POStuklijst[Checked])
VAR CompletedSum = SUM(POStuklijst[Completed])
RETURN IF(CheckedSum - CompletedSum = 0, "JA", "NEE")
Hi @JimmyBos - You need to ensure that the measure respects the row context like the calculated column
use the below measure:
Uitgegeven Measure =
VAR Checked = MAX(POStuklijst[Checked])
VAR Completed = MAX(POStuklijst[Completed])
RETURN
IF(Checked - Completed = 0, "JA", "NEE")
If you're seeing extra rows that aren't used in the project, try using a measure that excludes them
Uitgegeven Measure =
VAR Checked = MAX(POStuklijst[Checked])
VAR Completed = MAX(POStuklijst[Completed])
RETURN
IF( NOT(ISBLANK(Checked)) && NOT(ISBLANK(Completed)),
IF(Checked - Completed = 0, "JA", "NEE"),
BLANK()
)
Proud to be a Super User! | |
Hello @rajendraongole1 , Thanks again! The second formula (with the ISBLANK) was the solution!
Ofcourse also thanks to @Deku & @AnkitKukreja for their view on this problem.
Without more context the best I can suggest is
Uitgegeven Measure =
var Checked = sum(POStuklijst[Checked])
VAR Completed = sum(POStuklijst[Completed])
RETURN IF(Checked - Completed = 0, "JA", "NEE")
User | Count |
---|---|
84 | |
76 | |
74 | |
49 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |