Forum Discussion

WinYit's avatar
WinYit
Frequent Visitor
3 years ago

How to make a calculation

Hi,

May I know how to add another row to make the addition calculation.

If 0 + unlimited, the result show unlimited. 

5 Replies

    • WinYit's avatar
      WinYit
      Frequent Visitor

      Actually, I am making a report from old report system into Power BI.

      The picture below are the old report system:

      However, I have been asked to the Add Calculation between carry foward(bring forward) and SLa only.

       

  • pottsbi's avatar
    pottsbi
    Frequent Visitor

    I'm not too sure what exactly is being asked but I will answer the best I can. You want to add a row to that table that returns unlimited if the value in column a is "0" and the value in column b is "unlimited"? If so, I would just make a measure and add that to the table. The measure would be something like 

    Measure Name = If(AND(Table['Column A'] = "0", Table['Column B'] = "Unlimited"),
                      "Unlimited",
                      "Else Value"
                    )

    This is assuming both fields are of type string

    • WinYit's avatar
      WinYit
      Frequent Visitor

      Here is the result that I want:

      This pic I did with excel, I want it, especially the yellow part perform at Power BI

       

      • pottsbi's avatar
        pottsbi
        Frequent Visitor

        Did you try with the measure I suggested?