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

Daywise and YTD percentages based on their respective targets

Hi,

 

My Data looks like below.

July 3rd, 4th, 9th and 10th weekoffs. Remaining blank fields shows, they are on leave. Based on this, I need their target percentages.

In this I need daywise% and YTD%. Can you please tell me, how to calculate.

 

Thanks in advance....

skethagani_0-1626176215940.png

 

1 ACCEPTED SOLUTION
Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,
I would suggest you to unpivot the date columns.
Make this one column of Dates and a different colmn of Values.
Then, create your YTD measures.
1. Ytd= TOTALYTD(SUM(Table(Values)),Table(Dates))
2. Ytd %= DIVIDE(Ytd, Target).....Format this to precentage.
3. daywise%= DIVIDE(Values, Target).....Format this to precentage.

 

 

I believe this is what you need.
Kudos are appreciated!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @Anonymous ,
I would suggest you to unpivot the date columns.
Make this one column of Dates and a different colmn of Values.
Then, create your YTD measures.
1. Ytd= TOTALYTD(SUM(Table(Values)),Table(Dates))
2. Ytd %= DIVIDE(Ytd, Target).....Format this to precentage.
3. daywise%= DIVIDE(Values, Target).....Format this to precentage.

 

 

I believe this is what you need.
Kudos are appreciated!

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