Forum Discussion

AshDil's avatar
AshDil
Icon for Helper V rankHelper V
4 years ago
Solved

Want to show custom matrix table

Hi,

I want to show the data in following custom matrix format

CategoryUnit of MeasureSizeJanFeb
saltKgActual4060
 kgMedium5070
 KgHigh60120
 %Accuracy67%50%
SugarKgActual6030
 KgMedium9090
 KgHigh100120
 %Accuracy60%25%
Baking sodaTonActual3050
 tonMedium5070
 Ton

High

100100
 %Accuracy30%50%

The accuracy is Actual value divided by High value (eg: for month Jan, Category = "Salt", Actual value =  40 and High value = 60, so the accuracy  = 40/60 = 67%)

 

Please help me to do it.

Thanks,

AshDil.

 

  • Hi Icey ,

    The actual,medium and high are coming from my dataset. 

    So I write a calculation as follows

    Calculation = If(Hasonevalue('Table[Size]'),'Table'[Size],Divide('Table'[Actual Value],'Table'[High Vale]))
    I have renamed this Calculation (Divide('Table'[Actual Value],'Table'[High Vale])) as Accuracy.

    Finally used that column in visual.

    Thanks,

    Ashdil

4 Replies