Forum Discussion

des_san's avatar
des_san
Advocate I
3 years ago
Solved

Help with report visual

Greetings power bi friends,   I have a dataset that looks similar to this: App ID Created Date Approved Date Cancelled Date Completed Date 001 1/5/2023 1/6/2023   1/10/2023 002 1...
  • des_san's avatar
    3 years ago

    Hi Ibendlin, thank you for the reply. I figured out my solution by using the Unpivot Columns feature in Data Query.

     

    In summary, I duplicated my original data query, removed unecessary columns, selected the date columns and unpivoted them so that I had a new table with three columns: the [App ID] column, an attribute column representing the date name, and a value column representing the date value. I was then able to create a relationship between the original data query and the duplicate query using the Relationship Manager in the Model section of Power BI desktop.

    Following that, I created several measures to count MTD, LMTD, YTD, and ITD based on the duplicate table's data.

     

    If someone else stumbles upon this post and is facing a similar challenge, feel free to reply or message me and I'd be happy to go into more detail.