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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Anonymous
Not applicable

Trouble with piled columns graph (2 values)

Hi!

 

I've been having some trouble making a 2-value graph, data type: date/time and recount.

 

Context: it's a monthly report of a Help Desk that opens and closes tickets on a platform. The graph I mention is 'Open tickets vs Closed tickets', recount per day.

 

But using the filters in the Filter panel, I 'loose' data: for example, if I'm making the march/2020 report, and I filter the tickets created that month, I'm 'losing' tickets closed in march but created in february or before.

 

I tried adding new columns, taking only the data I need (meaning, only the tickets open or closed in march/2020), with the following:

OPEN = IF(YEAR(Worksheet[Open Date])=2020 && MONTH(Worksheet[Open Date])=3;Worksheet[Open Date])
CLOSE = IF(YEAR(Worksheet[Close Date])=2020 && MONTH(Worksheet[Close Date])=3;Worksheet[Close Date])

But then I had another problem, 'cause when I change the type to 'categoric' (Visualization panel, axis X, Type), a recount of Blank appears, like it's another day of the month.

 

Lastly, I tried creating 2 different tables (table 1: tickets opened in march/2020, table 2: tickets closed in march), with no blank cells. But it is impossible to visualize that data correctly (I get columns with recounts that have nothing to do with the data).

 

What solution could this have?

 

Thanks! 🙂

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi  @Anonymous 

For your case, there are two date columns (Worksheet[Open Date]/Worksheet[Close Date]), so you'd better create two relationship to calendar, then write two measures with userelationship function to choose which relations works for measure.

here is blog, please refer to:

USERELATIONSHIP Function (DAX)

USERELATIONSHIP in Calculated Columns

 

If you still have the problem, please share the sample pbix file and your expected output.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.