Forum Discussion

tkavitha911's avatar
tkavitha911
Icon for Helper III rankHelper III
2 years ago
Solved

to display different Levels

I want to visualize the hierarchical levels of the data using a matrix visual, displaying Channel level percentage, SPGR level percentage, and BGR level percentage based on the SFA%.
SFA = IF(TAE>=SALES,0,1-(TAE/SALES))

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi tkavitha911 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    SFA % = IF(SUM('Table'[TAE])>=SUM('Table'[Sales]),0,1-DIVIDE(SUM([TAE]),SUM([Sales])))

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

3 Replies

  •  

    CHANNELRealigned SPGRExit StatusBGRPeriodSalesTAE
    CPC80052ActiveDEO MALE202401          684459.9288
    CPC80102ActiveCREMES202401       4,8605854.837
    CPC80130ActiveCREMES202401       4,4286664.999
    CPC80201ActiveBODY202401       2,3763394.397
    CPC80204ActiveBODY202401       1,020282.973
    CPC80205ActiveBODY202401          240685.9039
    CPC80702ActiveSHOWER202401          12084.60612
    CPC80789ActiveSHOWER202401          26451.25488
    CPC81067ActiveSHOWER202401          240299.7073
    CPC81600ActiveDEO MALE202401          648989.8885
    CPC81601ActiveDEO FEMALE202401          508583.988
    CPC81779ActiveNM FACE - CLEANSING202401       1,584845.0919
    CPC83731ActiveDEO FEMALE202401       1,008130.712
    CPC83842ActiveBODY202401       2,2681742.348
    CPC83846ActiveBODY202401          68437.17978
    CPC84045ActiveSHOWER202401            96413.1129
    CPC87400ActiveBODY202401       1,620528.7976
    CPC87414ActiveBODY202401            9630.77008
    CPC87416ActiveFACE202401            24140.8703
    CPC87430ActiveFACE202401          168110.3145
    CPC87440ActiveFACE202401            96101.5637
    CPC87449ActiveFACE202401          14478.89207
    CPC88330ActiveBODY202401            4816.19855
    CPC88835ActiveNM FACE - CLEANSING202401          384964.6944
    CPC88868ActiveNM FACE - CLEANSING202401          960441.7013
    CPC89054ActiveSOFT202401       5,0001387.534
    CPC89059ActiveSOFT202401       8,1606458.904
    CPC89135ActiveBODY202401          936510.7398
    CSD80052ActiveDEO MALE202401    13,5603907.867
    CSD80102ActiveCREMES202401    58,32020499.05
    CSD80130ActiveCREMES202401    67,87229312.13
    CSD80132ActiveCREMES202401    37,32014972.39
    CSD80201ActiveBODY202401 1,02,9424958.114
    CSD80789ActiveSHOWER202401       7,188221.9304
    CSD80892ActiveSHOWER202401       7,320346.727
    CSD81067ActiveSHOWER202401       8,244542.2157
    CSD81600ActiveDEO MALE202401    26,4602595.27
    CSD81601ActiveDEO FEMALE202401    18,00013809.92
    CSD83731ActiveDEO FEMALE202401    23,4001991.73
    CSD84045ActiveSHOWER202401       9,048470.2744
    CSD85738ActiveBODY202401    39,6722304
    CSD87400ActiveBODY202401    23,9046468.342
    CSD89050ActiveSOFT202401    51,37615091.01
    CSD89059ActiveSOFT202401 1,20,09611237.57
  • this is out put for the sfa% in excel i want to diplay in power bi using SFA calculation 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi tkavitha911 ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) My test data is the same as yours.

    (2) We can create a measure. 

    SFA % = IF(SUM('Table'[TAE])>=SUM('Table'[Sales]),0,1-DIVIDE(SUM([TAE]),SUM([Sales])))

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly.