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

percentage of resolution

Please i have an issue to calculate the percentage of resolution per week, 

i tried to do this but i'm afraid it doesn't work

 

resolution WEEK-1 = (('Statut des DS'[Ticket résolu]/'Statut des DS'[Ticket traité]) *100),
'Statut des DS'[Date de création] >= date(2020 ,07,20),
'Statut des DS'[Date de création] <= date(2020 ,07,26)
)
1 ACCEPTED SOLUTION

Hi @ayoubb 

My test table is as below.

1.png

You may use measure:

Percent =

CALCULATE (

    DIVIDE ( [Ticket résolu], [Ticket traité] ),

    FILTER (

        'Statut des DS',

        'Statut des DS'[Date de création] >= DATE ( 2020, 07, 20 )

            && 'Statut des DS'[Date de création] <= DATE ( 2020, 07, 26 )

    )

)

I build a card visual to show the result. And you may select the percent measure and select % in Measure tools.

2.png

Result:

3.png

You can download the pbix file from this link: percentage of resolution

 

Best Regards,

Rico Zhou

 

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

7 REPLIES 7
amitchandak
Super User
Super User

@ayoubb , It should be like

divide(sum('Statut des DS'[Ticket résolu])/sum('Statut des DS'[Ticket traité]))

Mark it as % column. No need multiply with 100

For week intelligence refer

 

https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

i have mesures it can't be divided i guess see screen 

 

mesures.JPG

Hi @ayoubb 

My test table is as below.

1.png

You may use measure:

Percent =

CALCULATE (

    DIVIDE ( [Ticket résolu], [Ticket traité] ),

    FILTER (

        'Statut des DS',

        'Statut des DS'[Date de création] >= DATE ( 2020, 07, 20 )

            && 'Statut des DS'[Date de création] <= DATE ( 2020, 07, 26 )

    )

)

I build a card visual to show the result. And you may select the percent measure and select % in Measure tools.

2.png

Result:

3.png

You can download the pbix file from this link: percentage of resolution

 

Best Regards,

Rico Zhou

 

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

i want to calculate that for only a  perticular period , 

 

calculate.JPG

Hi @ayoubb ,

 

Create a measure as follows:

 

resolution WEEK-1 = CALCULATE(
                                                      DIVIDE(SUM('Statut des DS'[Ticket résolu]), SUM('Statut des DS'[Ticket traité]), 0) ,
                     'Statut des DS'[Date de création] >= date(2020 ,07,20) && 'Statut des DS'[Date de création] <= date(2020 ,07,26)
)
 
Once the above measure is created, convert it to PERCENTAGE.
 
Thanks,
Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

I have mesure i don't have column 

 

   DIVIDE(SUM('Statut des DS'[Ticket résolu]), SUM('Statut des DS'[Ticket traité]), 0)

Pragati11
Super User
Super User

Hi @ayoubb ,

 

I don't understand your DAX expression as there is no screenshot on how your data is and what you are trying to achieve.

Kindly add more detail to your query.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

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.