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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Non Dev Chart

Hi All,

 

I have a situation here and its confusing for me.

 

I have two columns in my report i.e Created Date and Closed Date and I have calculated column where i have the distinct count of the Non-dev tickets in my report.

 

Now I want to create a graph like shown below, how can I proceed with it? I'm confused like how will I show the months in common for the created and closed tickets where as I have different dates for both.

 

Total number of Non DEv tickets

Created Date

Closed Date

 

I have these 3 column available in my report.

 

Expected Chart:

Himanshu_13_0-1617101657175.png

 

Regards,

Himanshu

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Yes, the measure counts the closed tickets. Because there an active relationship between date and create date.

Not very clear about your data model, I used date hierarchy Year and Month as axis.

I'll share my sample data with you. please check the attached file.

 

Best Regards,

Jay

View solution in original post

17 REPLIES 17
vanessafvg
Community Champion
Community Champion

Hi Himanshu do you have a date table?

 

what you need to do is create a date table, link both dates to that date table.

 

The first date will be the active relationship denoted by an unbroken line and you can create your measure easily by, by default this will be the first date you link

 

no of tickets by open date = calculate(countrows(tablename))

 

for the second date you link which will be the closed date the relationship to the date table will have a dotted line (please note the first date you link will be the active so link open date first)

the dotted line means this is an inactive relationship which you will need to activate with your measure.

 

no of tickets by closed date = calculate(countrows(tablename), userelationship(closeddate, date))

 

let me know if you have any questions

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




if you provide some sample date i think it will be much easier to demonstrate  (make sure its in text format)

 

also can you show what result you arae expecting





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

This is the expected chart:

 

Himanshu_13_0-1617109639758.png

 

I'm able to make them seperately but not together.

 

Himanshu_13_1-1617109731689.png

 

can you provide some sample data (in text form)





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

This is sample input:

Himanshu_13_1-1617111541229.png

I already have a date table and the relationship created like below:

One is active with the Created Date.

Another is inactive with the closed date.

 

Himanshu_13_0-1617111415547.png

 

Anonymous
Not applicable

Hi @Anonymous ,

 

Use below measure and you don't need the inactive relationship and USERELATIONSHIP() function.

Measure = CALCULATE(DISTINCTCOUNT('Table'[WORKITEM]),FILTER('Table',YEAR('Table'[CLOSEDATE])=SELECTEDVALUE('CALENDAR'[Date].[Year])&&MONTH('Table'[CLOSEDATE])=SELECTEDVALUE('CALENDAR'[Date].[MonthNo])))

7.PNG

6.PNG

 

Best Regards,

Jay

Anonymous
Not applicable

@Anonymous Also, can you please confirm what this Measure value is? Is it closed tickets or what?

Anonymous
Not applicable

Hi @Anonymous ,

 

Yes, the measure counts the closed tickets. Because there an active relationship between date and create date.

Not very clear about your data model, I used date hierarchy Year and Month as axis.

I'll share my sample data with you. please check the attached file.

 

Best Regards,

Jay

Anonymous
Not applicable

Thanks my issue was resolved by using the common time table and the measure.

I created a calculated column for month year number and that resolved my issue.

 

Regards,

Himanshu

Anonymous
Not applicable

Hi Jay,

 

I'm not sure what is the reason but when I'm dragging fileds from my main table, all the values in the common created date table vanishes. Can' understand the reason as the relationship is also there.

 

P.S : I've created the measure as suggested. Now stuck on how to use it with my common date table.

 

Himanshu_13_1-1617611390132.png

 

 

Himanshu_13_0-1617611335314.png

 

 

Anonymous
Not applicable

I have created the below two measures as suggested:

 

no of tickets by closed date = calculate(countrows('DAX Date Table'), userelationship('devops-query-spr2'[Closed Date],'DAX Date Table'[Date]))
 
no of tickets by open date = calculate(countrows('DAX Date Table'))
 
But where does my Non-Dev column goes? Sorry but I'm really confused here.
How to check my Non-Dev ticket values. For closed and created. 
I have a calculated Column for non-Dev tickets which gives me 375 tickets
 I'm still not able to show the closed and created together. Seperately they are working fine.
Himanshu_13_0-1617109233609.png

 

 

Himanshu_13_1-1617109233605.png

 

amitchandak
Super User
Super User

@Anonymous , Based on first look, I think you need a common date table and use userealtionship

Refer this blog

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak I have created the common date table and made the relationship also. one active with created date and one inactive with closed date. But confused how to proceed further.

 

Himanshu_13_0-1617103247912.png

 

@Anonymous , Create measures.

Measure you create will have a filter on the created date and that is active.

Use userelationship(Table[Closed_date], Date[Date]) In calculates to use close date as the date.

 

In the date table have month year and plot measure against the month year of date table.

 

Refer to Hire and Termination in my blog.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak can you please help in the measure creation.

 

As per my understanding, i'll be needing 2 measures, one for Created Date and other one for Closed date but i'm not able to get the correct result.

 

Kindly advice what measures to use.

Anonymous
Not applicable

When using the month year from my date table it is not showing the months when the relationship is active. Also, when i make it inactive it displays data month wise but it seems incorrect.

 

 

 

 

Himanshu_13_0-1617119139767.png

 

this is when relationship is inactive:

 

Himanshu_13_1-1617119247522.png

 

Anonymous
Not applicable

I have created the below two measures as suggested:

 

no of tickets by closed date = calculate(countrows('DAX Date Table'), userelationship('devops-query-spr2'[Closed Date],'DAX Date Table'[Date]))
 
no of tickets by open date = calculate(countrows('DAX Date Table'))
 
But where does my Non-Dev column goes? Sorry but I'm really confused here.
How to check my Non-Dev ticket values. For closed and created. 
I have a calculated Column for non-Dev tickets which gives me 375 tickets
 I'm still not able to show the closed and created together. Seperately they are working fine.
Himanshu_13_0-1617108369721.png

 

Himanshu_13_1-1617108751139.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.