- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plotting two date fields on one date axis
Hi Folks,
Hopefully someone can help me out here. Relatively new to PowerBI.
Am using the Salesforce case object where each record has an Open Date and Closed Date.
I want to plot the number of cases open vs closed over a period of months.
If I use either of the date fields as the axis then I will be limiting the other field by that date and as a result some records will be excluded.
What I think would work, if technically possible, would be to create a dynamic table that would automatically populate with the Case number, Date (open or closed depending on the source field), Flag.
Is it possible to insert a record with the Case number, Open Date, Flag of 'O' for all of the records with an open date populated?
Then insert a record with the Case number, Closed Date, Flag of 'C' for all of the records with the closed date populated?
So if the source looks like this:
The format I am looking to to dynamically populate is this:
The result I want from PowerBI is similar to this:
This will allow me to filter by Open/Closed date rather than the source Open Date, Closed Date and allow me to show cases that closed in a certain month even if they were opened before that date filter (I have filtered here to only show Oct and Nov)
Kind Regards,
Patrick.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may right click column [Case Number], then select Unpivot Other Columns in the Query Editor.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may right click column [Case Number], then select Unpivot Other Columns in the Query Editor.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Excellent stuff, (sorry for the delay in responding I got distracted by something else!).
Thanks a million for taking the time to help me. That worked a treat for what I was trying to to.
Kind Regards,
Patrick.

Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - February 2025
Check out the February 2025 Power BI update to learn about new features.

Subject | Author | Posted | |
---|---|---|---|
09-22-2024 10:17 PM | |||
09-13-2024 06:11 PM | |||
10-04-2024 08:09 AM | |||
09-08-2024 12:36 AM | |||
07-24-2024 01:39 PM |
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |