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
Zaky
Helper IV
Helper IV

Measure to calculate percentage of closed date IncidentID Ticket

Hi,

 

Could someone please help me on this. I want to get a gauge percentage of MeasurementStatus=’Met’ for which Closed Date=Num of MonthStart of current month. Sorry, maybe my explanation above couldn’t be understandable. But recently I’ve successful used the following measure in QlikSense: 

 

=count({<MeasurementStatus={'Met'},[Closed Date]={">=$(=Num(MonthStart(Max([Closed Date]))))<=$(=Max([Closed Date]))"}>} [Incident ID])/count({<[Closed Date]={">=$(=Num(MonthStart(Max([Closed Date]))))<=$(=Max([Closed Date]))"}>} [Incident ID])

 

Thanks.

 

 

1 ACCEPTED SOLUTION

Hi @Zaky,

 

To create a measure as below.

 

Measure 2 = 
CALCULATE (
    COUNTROWS ( 'Incident Raw Data (SLA Response' ),
    FILTER (
        'Incident Raw Data (SLA Response',
        'Incident Raw Data (SLA Response'[MeasurementStatus] = "Met"
    )
)
    / COUNTROWS ( 'Incident Raw Data (SLA Response' )

Capture.PNG

For more details, please check the pbix as attached.

 

Regards,

Frank

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

View solution in original post

4 REPLIES 4
v-frfei-msft
Community Support
Community Support

Hi @Zaky,

 

Could you please share your sample data and excepted result to me, if you don't have confidential data? Please upload your file to One Drive and share the link here.

 

Regards,

Frank

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

Hi,

 

You may download the file here

Excepted result is that the gauge will get a percentage for the current month of Closed Date by count table MeasurementStatus='Met'

 

gauge1.jpg

Hi @Zaky,

 

To create a measure as below.

 

Measure 2 = 
CALCULATE (
    COUNTROWS ( 'Incident Raw Data (SLA Response' ),
    FILTER (
        'Incident Raw Data (SLA Response',
        'Incident Raw Data (SLA Response'[MeasurementStatus] = "Met"
    )
)
    / COUNTROWS ( 'Incident Raw Data (SLA Response' )

Capture.PNG

For more details, please check the pbix as attached.

 

Regards,

Frank

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

Hi,

 

Thanks dude. It's work as what i required.

Awesome!

 

 

Regards

Zaky

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.