Forum Discussion

BhavyaM's avatar
BhavyaM
Icon for Helper V rankHelper V
6 years ago
Solved

KPI for blank

Hi Friends,

CompanyCurrentPreviousPercentageTrend
A1020-1Down arrow
B90302Uparrow
C    
D130402.25Uparrow

If there is data then below i am getting as expected.

But, I want to show Like below if there is no values.

Trend =
VAR _Trend = CALCULATE(SUM('Table'[Percentage]))
Return
IF(_Trend > 0 ,UNICHAR(9650) ,
IF(_Trend <= 0 ,UNICHAR(9660),
Blank()
))

 

Here, Condition is i should not convert Blanks to Zero.

 

Please help. Its an Urgent requirement

 

Thanks in advance.

 

  • Fowmy's avatar
    Fowmy
    6 years ago

    BhavyaM 

    Try this modified measure:

     

    _Trend = 
    SWITCH( TRUE(),
        [_Diff] = 0, UNICHAR(9660),
        [_Diff] = BLANK(), "",   
        [_Diff] > 0 ,UNICHAR(9650) ,
        [_Diff] < 0 ,UNICHAR(9660)
    )

    ________________________

    Did I answer your question? Mark this post as a solution, this will help others!.

    I accept KUDOS 🙂

    YouTube, LinkedIn

13 Replies

  • BhavyaM 

    Modify your trend measure like:

    Trend = 
    VAR _Trend = CALCULATE(SUM('Table'[Percentage]))
    Return
    SWITCH( TRUE(),
        _Trend = BLANK(), "",
        _Trend > 0 ,UNICHAR(9650) ,
        _Trend <= 0 ,UNICHAR(9660)
    )



    ________________________

    Did I answer your question? Mark this post as a solution, this will help others!.

    I accept KUDOS 🙂

    YouTube, LinkedIn

     

    • BhavyaM's avatar
      BhavyaM
      Icon for Helper V rankHelper V

      Fowmy 

       

      I tried this,

       

      But i am getting (Blank) for Percentage column in the advanced card visual.

       

       

      • Fowmy's avatar
        Fowmy
        Icon for Super User rankSuper User

        BhavyaM 

        Share you a sample PBIX file to simulating the issue?

        ________________________

        Did I answer your question? Mark this post as a solution, this will help others!.

        I accept KUDOS 🙂

        YouTube, LinkedIn