Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
itsyash007
New Member

Get trends with 2 different dates in a single chart

I have data for multiple tickets in an excel tracker. I want to represent two trends on a chart in PowerBI.

 

First one is 'Received Volume' depending on the 'Received Date'

Second one is 'Completed Volume' depending on the 'Completion Date' and 'Status'

 

All these fields are in the same table.

 

I was able to create two separate charts but my challenges in getting both these together as values in the axis will be based on different columns.

 

Probable solution is that I create a new table which has 'Date', 'Count of Received Volume based on 'Received Date' and 'Count of Completion Volume, based on 'Status' and 'Completion Date'

 

I was able to create a new table with unique dates using 'Calendar' DAX function.

 

However, I am not able to crack the calculation of received volume and completion volume (similar to countif in excel). I believe I am struggling because PowerBI is calculating at column level and returning the same value irrespective of the date.

 

Format in which I am expecting my new table:

Date | Received Count | Completed Count

 

Any help is truely appreciated.

 

Thanks,

Yash

 

 

1 ACCEPTED SOLUTION

Hi @itsyash007,

 

You may download my solution from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Along with the dataset that you share, also show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
davehus
Memorable Member
Memorable Member

Hi, Do you have an anonymised sample of your data that you could upload?

Hi, Below is my existing table and the output that I am expecting. I am able to get the unique dates in the new table but not able to get the tickets received and completed. Note: For tickets completed, I need to consider 'Date completed' with status as 'Completed.

Existing Table.jpg

 

Expected Output.jpg

 

Hi @itsyash007,

 

You may download my solution from here.

 

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.