Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

need help with visualization and data prep.

Hello everyone,

 

I have data like below in table and need visualization as shown in the image.

 

Problem also is, if a Product got delisted and new product got listed so no new rating data should apper for that product in the graph.

 

For Eg.

 

Product B0777J1KP1 got delisted on 25/04/2018 when the new product B07CN9D18C listed so ratings of the product B0777J1KP1 after this date is irrelevant.

 

 

Artikelnummer           Product         Country         Product_Coutry_Art             Aktiv             ratingCreation_dateRating_Date
10029872B0777J1KP1DEB0777J1KP1DE100298720207/11/201713/12/2017
10029872B0777J1KP1DEB0777J1KP1DE1002987203.107/11/201718/12/2017
10029872B07CN9D18CDEB07CN9D18CDE100298720025/04/201825/04/2018
10029872B0777J1KP1DEB0777J1KP1DE100298720307/11/201726/04/2018
10029872B0777J1KP1DEB0777J1KP1DE1002987202.707/11/201729/01/2019
10029872B07MCKXF9XDEB07MCKXF9XDE100298720511/01/201925/02/2019
10029872B07MCKXF9XDEB07MCKXF9XDE1002987202.911/01/201909/05/2019
10029872B07MCKXF9XDEB07MCKXF9XDE1002987202.611/01/201916/07/2019
10029872B07MCKXF9XDEB07MCKXF9XDE1002987202.411/01/201905/08/2019
10029872B07MCKXF9XDEB07MCKXF9XDE1002987202.611/01/201923/08/2019
10029872B07YSD8DMFDEB07YSD8DMFDE100298721007/10/201907/10/2019

 

 

 

 

 

 

  • dax's avatar
    dax
    6 years ago

    Hi A31,

    It is hard to analyse irregular data in Powerbi(as I know, data will aggregate automatically in chart), you could use below measure to get similar line chart or area chart, but there is no date  for 0 , so it will show a point in line chart or area chart. If you want it to show as a line, you need at least two point, you could add row in model, which should work

    10029872 B07CN9D18C DE B07CN9D18CDE10029872 0 0 11/01/2019 11/01/2019

     

     

    Measure = CALCULATE(SUM('Table'[rating]),FILTER( ALLEXCEPT('Table','Table'[Product]),MIN('Table 2'[Date])<='Table'[Rating_Date]&&MIN('Table 2'[Date])>='Table'[Rating_Date]))

     

     

     

    Or you also could ask other contributors in forum for details.

    Best Regards,
    Zoe Zhi

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

4 Replies

  • dax's avatar
    dax
    Community Support

    Hi A31,

    According to your description, it seems that you want show continual date? The part in blue circle will show 0?

    And if the Aktiv =1, you need to show value till today(), right? If this is not what you want, please correct me. I need to research on it and will inform you as soon as I get it.

    Best Regards,
    Zoe Zhi

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

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Zoe,

       

      Data in the blue circle should not appear on the graph since B07CN9D18C already has started before that. After 25-04-2018 only data for B07CN9D18C should show on the graph. and after 11th jan 2019,  B07CN9D18C should go out and B07MCKXF9X should start and continue until some new product got listed, like here we have on 01-10-2019 (B07YSD8dMF).

      For the active yes we need it till today.

    • dax's avatar
      dax
      Community Support

      Hi A31,

      It is hard to analyse irregular data in Powerbi(as I know, data will aggregate automatically in chart), you could use below measure to get similar line chart or area chart, but there is no date  for 0 , so it will show a point in line chart or area chart. If you want it to show as a line, you need at least two point, you could add row in model, which should work

      10029872 B07CN9D18C DE B07CN9D18CDE10029872 0 0 11/01/2019 11/01/2019

       

       

      Measure = CALCULATE(SUM('Table'[rating]),FILTER( ALLEXCEPT('Table','Table'[Product]),MIN('Table 2'[Date])<='Table'[Rating_Date]&&MIN('Table 2'[Date])>='Table'[Rating_Date]))

       

       

       

      Or you also could ask other contributors in forum for details.

      Best Regards,
      Zoe Zhi

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