Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hello Power BI Super Users,
The data below is fake but the problem is real.
My issue is that Excel Power Pivot does not use SelectedValue. I am having trouble adapting the return statement when I use HasOnveValue because I use &&.
Works Well in Power BI but not available in Excel
Here is a link to the PBIX file.
Appreciate any nudge.
Solved! Go to Solution.
@Anonymous, please try changing the DAX expression of your [Masked Name1] measure to this:
Masked Name1 =
VAR ovAttendanceValue = HASONEVALUE(Table1[Attendance Percent])
VAR AttendanceValue = VALUES(Table1[Attendance Percent])
VAR GetName = VALUES(Table1[Student Full Name])
RETURN
IF(
ovAttendanceValue,
IF(
AttendanceValue < 0.8 && AttendanceValue > 0, "*", GetName
)
)
The error you were getting was because you were trying to pass in an expression to the VALUES function, but the VALUES function can only take a table or column. You were also trying to pass in more than one paramter when VALUES tables just 1 paramter.
@Anonymous, please try changing the DAX expression of your [Masked Name1] measure to this:
Masked Name1 =
VAR ovAttendanceValue = HASONEVALUE(Table1[Attendance Percent])
VAR AttendanceValue = VALUES(Table1[Attendance Percent])
VAR GetName = VALUES(Table1[Student Full Name])
RETURN
IF(
ovAttendanceValue,
IF(
AttendanceValue < 0.8 && AttendanceValue > 0, "*", GetName
)
)
The error you were getting was because you were trying to pass in an expression to the VALUES function, but the VALUES function can only take a table or column. You were also trying to pass in more than one paramter when VALUES tables just 1 paramter.
@EylesIT - thank you!
I see what you mean.
By using the nested IF statement, I could maintain the parameter rules and produce the intended output.
The if statement now has the parameter to choose either the hasonevalue or the alternative values.
Brilliant.
Thank you again.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
71 | |
37 | |
21 | |
19 | |
15 |
User | Count |
---|---|
125 | |
33 | |
27 | |
24 | |
23 |