Forum Discussion

Marieamelll's avatar
Marieamelll
Regular Visitor
2 years ago
Solved

Operation with a Selectedvalue

Hi !

Thank you for reading my message. I went through the forum but I didn't find the solution. I hope you'll help me !

I have the following type of dataset :

brandKPI 15-34KPI 25-49KPI W25-49 KPI W 35-49KPI W 35-59KPI W 15-49KPI WkidsNb days
brand_1241,20864432,57426469,30805509,77522683,14153452,71012412,66568200
brand_2333,07644576,55774668,67969724,99136980,31178658,07614611,47355183,9
brand_3917,06971523,156631781,49551940,310142648,864371750,072911623,26575628,3
brand_430,1092253,1799663,4523664,9653790,6887561,9776854,7177650,3
brand_5409,0234697,19137811,0982911,506681228,93875797,87734714,84962396,8
brand_6927,989541579,89011827,268142056,947412729,629471804,568361650,93086357,7
brand_7565,1796972,690241125,046091264,982441756,493641111,695511007,85061413,6
brand_8424,30876727,18449826,82702889,249741076,72995823,47158740,32596170,1

I have a slicer to select the KPI to display.

KPI
KPI 15-34
KPI 25-49
KPI W25-49 
KPI W 35-49
KPI W 35-59
KPI W 15-49
KPI Wkids

I'd like to add, into a tab, the calculation KPI / Nb of days, depending on the selected KPI.

I've tried several formula, but I had an error each time.

 

Thanks a lot for your help !

 

Best regards,

 

MA

5 Replies

    • Marieamelll's avatar
      Marieamelll
      Regular Visitor

      Hi Arul, thank you for your message.

      I need this result (I added one metric - cost)

      Hi Arul, i need this type of result (I have added one metric - cost) :

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Marieamelll ,

     

    I wonder that you want to filter the table data by KPI type and you can check the result as below:

    Go to Power Query, select all the KPI columns and click on unpivot columns and you get data like this:

     

    Just save it and use the Attribute as a slicer.

     

    Please feel free to correct me and provide more information if I have misunderstood you!

     

    An attachment for your reference. Hope it helps!

     

    Best regards,
    Community Support Team_ Scott Chang

     

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