Forum Discussion

AllanBerces's avatar
AllanBerces
Icon for Post Prodigy rankPost Prodigy
2 years ago
Solved

Visual Calculation_If Blank

Hi good day, 

Can anyone help me on my visual calaculation, i want to hide the row if is blank.

 

Hrs = [Earned] + [Remaining]

Output

Thank you

  • Hi AllanBerces  I think, visual calculations themselves do not directly remove blank rows, Instead you can use measure, which automatically removes blank. If you really need to use visual calculation, and want to hide blank rows then recreate the measure and place it in the "Filter on this visual" and filter out blank. For your case,

    hrs = SUM('Table'[Earned]) + SUM('Table'[Remaining]) and placed it in the filter pane. See the image below:



    Other way to exclue. For example, you can rewrite the visual calculation like below:

    hrss =
    IF(
    [Earned]+[Remaining]=00[Earned]+[Remaining]
    )

    Then exclude only 0. See the image below:



    if multiple blank rows, then control + click to multi select, and exclude.



    Hope this helps!!

    If this solved your problem, please mark it as a solution!!

3 Replies

  • Hi AllanBerces  I think, visual calculations themselves do not directly remove blank rows, Instead you can use measure, which automatically removes blank. If you really need to use visual calculation, and want to hide blank rows then recreate the measure and place it in the "Filter on this visual" and filter out blank. For your case,

    hrs = SUM('Table'[Earned]) + SUM('Table'[Remaining]) and placed it in the filter pane. See the image below:



    Other way to exclue. For example, you can rewrite the visual calculation like below:

    hrss =
    IF(
    [Earned]+[Remaining]=00[Earned]+[Remaining]
    )

    Then exclude only 0. See the image below:



    if multiple blank rows, then control + click to multi select, and exclude.



    Hope this helps!!

    If this solved your problem, please mark it as a solution!!