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
Anonymous
Not applicable

Reporting open records by month

Hi all

I need some help to show the number of open problem records every month.  Ideally, I would like to show the count on the line series on a combo chart.

I've tried a few things but they just don't seem to work.

An open record is a reference in a status of open or open with a workaround.  

The data has the created date, closed date, status, last update and reference number. 

sample pbix file

 

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @Anonymous 

here is a same post for you refer to:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365

and you may refer to this formula:

Open = 
VAR tmpCalendar = ADDCOLUMNS('DateTable',"Month",MONTH([Date]),"MonthYear",VALUE(YEAR([Date]) & FORMAT(MONTH([Date]),"0#")))
VAR tmpBilling = ADDCOLUMNS('Problem',"MonthYearBegin",VALUE(YEAR([Created]) & FORMAT(MONTH([Created]),"0#")),
                                      "MonthYearEnd",IF([Closed]=BLANK(),VALUE(YEAR(TODAY()) & FORMAT(MONTH(TODAY()),"0#")),VALUE(YEAR([Closed]) & FORMAT(MONTH([Closed]),"0#"))))
VAR tmpTable = 

    FILTER(
        GENERATE(
            tmpBilling,
            SUMMARIZE(tmpCalendar,[Year],[Month],[MonthYear])
        ),
        [MonthYear] >= [MonthYearBegin] &&
        [MonthYear] <= [MonthYearEnd]
    ) 
    
 
RETURN COUNTAX(FILTER(tmpTable,[Status]="Open with Workaround"||[Status]="Open"),[Status])

They have the same logic, if you still have problem, please share the expected output based on these sample data.

 

Best 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.

View solution in original post

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

hi, @Anonymous 

here is a same post for you refer to:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365

and you may refer to this formula:

Open = 
VAR tmpCalendar = ADDCOLUMNS('DateTable',"Month",MONTH([Date]),"MonthYear",VALUE(YEAR([Date]) & FORMAT(MONTH([Date]),"0#")))
VAR tmpBilling = ADDCOLUMNS('Problem',"MonthYearBegin",VALUE(YEAR([Created]) & FORMAT(MONTH([Created]),"0#")),
                                      "MonthYearEnd",IF([Closed]=BLANK(),VALUE(YEAR(TODAY()) & FORMAT(MONTH(TODAY()),"0#")),VALUE(YEAR([Closed]) & FORMAT(MONTH([Closed]),"0#"))))
VAR tmpTable = 

    FILTER(
        GENERATE(
            tmpBilling,
            SUMMARIZE(tmpCalendar,[Year],[Month],[MonthYear])
        ),
        [MonthYear] >= [MonthYearBegin] &&
        [MonthYear] <= [MonthYearEnd]
    ) 
    
 
RETURN COUNTAX(FILTER(tmpTable,[Status]="Open with Workaround"||[Status]="Open"),[Status])

They have the same logic, if you still have problem, please share the expected output based on these sample data.

 

Best 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
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.

Top Solution Authors
Top Kudoed Authors