Forum Discussion

abc_777's avatar
abc_777
Solution Specialist
3 years ago

hi

hi,

 

can some one say how can i pur color when switch between these two measure please

 

Total in Piece and KG (Measure) =
 IF (
    HASONEVALUE ('Total in Piece and KG (Measure)'[Total in Piece and KG (Measure) ]),
    SWITCH (
        VALUES ('Total in Piece and KG (Measure)'[Total in Piece and KG (Measure) ]),
       
        "Total Quantity in Piece (Measure)", ([Total Quantity in Piece (Measure)]),    >>>>>>>>>>>>>> measure 1
        "Total Quantity in KG (Measure)",  ( [Total Quantity in KG (Measure)])           >>>>>>>>>>>>>> measure 2
    ))
 
give me deep Blue and Orange colour code please
 
thanks

5 Replies

  • v-luwang-msft's avatar
    v-luwang-msft
    Community Support

    Hi abc_777 ,

    Need your sample data and expected output result,pls share it.

     

     

    Best Regards

    Lucien

      • abc_777's avatar
        abc_777
        Solution Specialist
        Here my new or main measure   
         
        Total in Piece and KG (Measure)  is general or decimal
         
        when i select 
         
        Total Quantity in Piece (Measure) >>>>>>>>>>>>> values should come as general or decimal
        and
        Total Quantity in KG (Measure) >>>>>>>>>>>>> values should come as 0.00 KG
         
         
        Total in Piece and KG (Measure) =
         IF (
            HASONEVALUE ('Total in Piece and KG (Measure)'[Total in Piece and KG (Measure) ]),
            SWITCH (
                VALUES ('Total in Piece and KG (Measure)'[Total in Piece and KG (Measure) ]),
               
                "Total Quantity in Piece (Measure)", ([Total Quantity in Piece (Measure)]),    >>>>>>>>>>>>>> measure 1
                "Total Quantity in KG (Measure)",  ( [Total Quantity in KG (Measure)])           >>>>>>>>>>>>>> measure 2
            ))
         
        thanks