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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
remi
Advocate II
Advocate II

create slicer and put multiple years on a chart that calculates the open, closed and residual tasks

Hello all,

 

Can you please let me know if there's a way to create a chart of open, closed and residual issues to which you can apply additional slicers - like the type of work/ service and that runs over different years with a monthly/weekly frequency?

 

This is what I've done with the help from https://community.powerbi.com/t5/Desktop/dax-how-to-count-open-tickets/m-p/100614#M42189

Buth, unfortunately, the solution given is hard to adapt to include other categories to slice it further for e.g see how many issues were GSM, UMTS, LTE from the total no (below chart), and also it doesn't account for the changing of the year ( it works very good within a year ...)

 

 

Thank you

 

image.png

2 REPLIES 2
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @remi,

 

I am not very clear about your requirement. Is above image you desired output? What slicer you want to apply to? Please illustrate the results displayed in above image with more information. Also, please post your sample data, it's hard to image your table structrue and detailed data.

 

Regards,

Yuliana Gu

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

Hello @v-yulgu-msft,

 

Thank you for getting back to me!

 

The table is something like this:

 

 

TT Ref           Tech                          Open Date   Closed Date

TT05LTE & UMTS & GSM1/10/201621/10/2016
TT03UMTS & GSM10/10/201612/10/2016
TT06GSM10/10/201612/10/2016
TT07UMTS10/10/20161/1/2017
TT01UMTS1/1/20172/1/2017
TT02GSM2/1/20175/1/2017
TT04LTE12/12/201719/12/2017
TT08LTE1/1/201812/1/2018
TT09LTE & UMTS 1/1/201821/1/2018

 

Already have a DAX for making the desired output on months, but can't figure out how to have multiple years and also have this easy to use output - Now the values rotate from January to December and adding up the values from multiple years.

 

Also was looking into how to slice the output (the above table has 6 categories: GSM, UMTS, LTE, UMTS & GSM, LTE & GSM, LTE & UMTS & GSM ) and want maybe to have a table for each of them if it's not possible to slice them so need to filter the data before outputting the table.

Summary Table = 
SELECTCOLUMNS(
    ADDCOLUMNS(FILTER(DISTINCT(SELECTCOLUMNS(UNION(VALUES(Sheet1[Closed Date].[MonthNo]),VALUES(Sheet1[Opened date].[MonthNo])),"Month",[Closed Date].[MonthNo])),[Month]<>BLANK()),
        "Open",COUNTAX(FILTER(ALL(Sheet1),[Opened date].[MonthNo]=EARLIER([Month])||AND([Opened date].[MonthNo]=EARLIER([Month]),Sheet1[Closed Date]>MAX(Sheet1[Opened date]))),[SR]),
        "Close",COUNTAX(FILTER(ALL(Sheet1),[Closed Date].[MonthNo]=EARLIER([Month])),[SR]),
        "Total",COUNTAX(FILTER(ALL(Sheet1),Sheet1[Opened date].[MonthNo]<=EARLIER([Month])&&OR(Sheet1[Closed Date].[MonthNo]>=EARLIER([Month]),Sheet1[Closed Date]=BLANK())),[SR])),
                "Month",FORMAT(DATE(2016,[Month],1),"MMMM"),
                "Close",if([Close]>0,[Close],0),
                "Open",if([Open]>0,[Open],0),
                "Total",if([Total]>0,[Total],0))

 Thank you and looking forward to your input. 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors