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.
I have a table similar to this:
Unit # | Unit Name | Unit Budget |
456 | First | $100 |
123 | Second | $200 |
789 | Third | $300 |
Total | Second | $600 |
I don't want the Second unit name (red for emphasis) showing up in the total row. I just want this space to blank.
I've checked numerous formatting options but I still can't get the name to disappear. Any suggestions?
Solved! Go to Solution.
Hi @ahinson ,
Whether [Unit Name] is a measure or not, if you just want the Total line of [Unit Name] to be blank and the rest of the Total lines to be unchanged, you can experiment with the IF()+HASONEVALUE () function.
Refer to:
IF function (DAX) - DAX | Microsoft Learn
HASONEVALUE function (DAX) - DAX | Microsoft Learn
Create measure.
Measure_Unit Name =
IF(
HASONEVALUE('Table'[Unit #]),
[Unit Name],BLANK())
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @ahinson ,
Whether [Unit Name] is a measure or not, if you just want the Total line of [Unit Name] to be blank and the rest of the Total lines to be unchanged, you can experiment with the IF()+HASONEVALUE () function.
Refer to:
IF function (DAX) - DAX | Microsoft Learn
HASONEVALUE function (DAX) - DAX | Microsoft Learn
Create measure.
Measure_Unit Name =
IF(
HASONEVALUE('Table'[Unit #]),
[Unit Name],BLANK())
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Under Totals in the format pane while clicking on your table. Make the font color and background color white.
Sure, you can use a measure like @Anonymous suggested but you can simply just format the total label like I did. Please accept this as a solution if it helped!
User | Count |
---|---|
84 | |
80 | |
70 | |
47 | |
43 |
User | Count |
---|---|
108 | |
54 | |
50 | |
40 | |
40 |