Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello Everyone,
I'm trying to do a Histogram chart for my company like this :
On this one, the dates comes from my calendar table.
My data model looks like this :
But now, I cannot rely the 2 Incidents tables to each other on the incident ID.
My idea, is very simple, I want to show on the chat, how many incident where created on a specific day and how many were close on the same day. It's working fine but if I want to filter by "Personne traitant l'incident" (for exemple), the closing incident don't move.
I have tryed to rely my the two incidents tables on the Incident_id but my chart is not good anymore because all the dates will be the CreatedDate and not the Created and Closing Date
Do you have any idea how can I solve this ?
(I can rebuilt my resquests on SQL if needed)
Solved! Go to Solution.
Hi @Hugz02 ,
For this you need to do two relationships with the calendar table:
Date - Open Date
Date - Closed Date
One of this relationships will be inactive so for that one you need to use a USERELATIONSHIP to activate it let's assume that the open date is the active relationship then for the closed you would need to do the following measure:
Closed incidents = CALCULATE(COUNT(Table[Incident]), USERELATIONSHIP(Calendar[Date], Table[CloseDate]))
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Hugz02 ,
For this you need to do two relationships with the calendar table:
Date - Open Date
Date - Closed Date
One of this relationships will be inactive so for that one you need to use a USERELATIONSHIP to activate it let's assume that the open date is the active relationship then for the closed you would need to do the following measure:
Closed incidents = CALCULATE(COUNT(Table[Incident]), USERELATIONSHIP(Calendar[Date], Table[CloseDate]))
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsMarch 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
126 | |
78 | |
78 | |
59 | |
51 |
User | Count |
---|---|
165 | |
83 | |
68 | |
68 | |
59 |