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
jbrolland
Frequent Visitor

How to include closed items in the stacked column chart?

Hello

I have the below data

 

STATUSOpened Year and MonthClosed Year and Month
DONE2021-12021-1
DONE2021-12021-2
ONGOING2021-1 
DONE2021-12021-2
DONE2021-12021-1
DONE2021-12021-3
ONGOING2021-1 
ONGOING2021-1 
DONE2021-12021-2
DONE2021-12021-3
DONE2021-12021-1
DONE2021-12021-2
ONGOING2021-1 
DONE2021-12021-2
DONE2021-12021-1
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-2
DONE2021-22021-4
ONGOING2021-2 
DONE2021-22021-2
ONGOING2021-2 
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-3
DONE2021-12021-2
DONE2021-12021-2
DONE2021-22021-1
ONGOING2021-1 
DONE2021-22021-2
DONE2021-22021-3
DONE2021-22021-3
DONE2021-22021-4
DONE2021-32021-3
DONE2021-32021-4
DONE2021-22021-3
DONE2021-32021-4
DONE2021-32021-4
ONGOING2021-2 
ONGOING2021-3 
DONE2021-32021-3
DONE2021-32021-3
ONGOING2021-3 
ONGOING2021-3 
DONE2021-32021-1
DONE2021-32021-1
ONGOING2021-3 
ONGOING2021-3 
ONGOING2021-3 
ONGOING2021-3 
ONGOING2021-3 
NOT FIXED2021-3 
ONGOING2021-4 
ONGOING2021-4 
DONE2021-42021-4
ONGOING2021-4 
ONGOING2021-4 
ONGOING2021-4 
ONGOING2021-4 

 

I am trying:

  • to have columns which represent the number of open incident per month (this I can actually do it, cf below)
  • to insert within those columns the number of closed incident per month (this I cannot, I am always ending with the wrong number of DONE and ONGOING)

How can I achieve this? I have tried many things but I am clueless

jbrolland_0-1618891789062.png

 

 

7 REPLIES 7
v-yetao1-msft
Community Support
Community Support

Hi @jbrolland ,

Please correct me if I wrongly understood your question.

For STATUS=DONE ,there are two dates , one is Opened Year and Month and other is Closed Year and Month . So if you use different date to count ,you will get different results . If you put different dates and different status in the same visual, the displayed results will be more complicated .My suggestion is creating two visuals to display the counts of two dates .

I create measures to count different status .

ONGING = CALCULATE( COUNTA('Table'[STATUS]),FILTER('Table','Table'[STATUS]="ONGOING" ))

NOT FIXED = CALCULATE( COUNTA('Table'[STATUS]),FILTER('Table', 'Table'[STATUS]="NOT FIXED"))

DONE = CALCULATE( COUNTA('Table'[STATUS]),FILTER('Table','Table'[STATUS]="DONE"))

 

Then create two clustered column chart visuals ,like this

Ailsa-msft_0-1619054854367.png
Ailsa-msft_1-1619054854371.png

 

Best Regards

Community Support Team _ Ailsa Tao

 

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

Thanks @Ashish_Mathur  for taking time to answer my question.

Opened Year and Month and Closed Year and Month having matching values, isn't it possible to put everything on the same graph?

 

PS: How did you format to obtain YYYY-Month format on the X axis ?

You are welcome.  It is possible.  Please provide the information i requested for in my previous message.


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

Anyone?

Hi,

I'd like ot help but i think your data is incomplete.  Shouldn't there be a Customer or Vedor or Project column as well in your dataset?


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

Sorry I missed your answer.

Well not really cause this is incidents cases so except incident description (which is different for every single row) there is not much to add.

 

 

Hi,

You may download my PBI file from here.  Using the Query Editor, i have been able to transform data to the shape and form you see in the image below.  You should now be able to build your desired visual.

Untitled.png


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.