Forum Discussion

galavichid's avatar
galavichid
Regular Visitor
2 years ago
Solved

Create line chart based on data from measures

Hi, I am trying to save time on copy data from Power BI to PP by creating this line chart: Each dot, present BWH % calculated by a measure based on another measure which calculated data from ...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi galavichid ,

     

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

    (1) We can create a Date Table.

    DateTable = ADDCOLUMNS(CALENDAR(DATE(2023,1,1),DATE(2023,12,31)),"year",YEAR([Date]),"month",MONTH([Date]))

    (2) We can create a measure. 

    BWH Previous Month = 
       CALCULATE(
           [BWH %],
           DATEADD('DateTable'[Date], -1, MONTH)
       )

    (3) Then the result is as follows.

    If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

     

    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.