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
Himanshi0291
Helper II
Helper II

Need help with Quarter & Year calculation

Hi Team,

I am looking to calculate Quaterly and Yearly utilization based on billable hours but I do not have measure for Quarter & Year to allow calculation of the same. 

 

My query to calculate quaterly utilization is - 

Quarterly Utilization = DIVIDE(([Billable Hours])*100,[Working Days]*8*[PeopleNum]-[Leaves])
but this does not have Quaterly paramter yet.
 
I have a field named ' Trans date' in one of the table which shows me - Year, Quarter, Month, Day (For example, 2020, Qtr2, June, 28).
How do I arrive at Quater & Year to include them in my query? 
 
Thanks,

 

2 REPLIES 2
amitchandak
Super User
Super User

@Himanshi0291 , Try with time intelligence

Utilization =
DIVIDE([Billable Hours],[Working Days]*8*[PeopleNum]-[Leaves])

Quarterly Utilization = calculate([Utilization], datesqtd(Date[Date]))

or you may have to calculate individual QTD formula and use it.

Also Mark as % , no need multiply by 100

 

refer :

https://community.powerbi.com/t5/Community-Blog/Decoding-Direct-Query-in-Power-BI-Part-1-Time-Intell...

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

See if my webinar on Time Intelligence can help: https://community.powerbi.com/t5/Webinars-and-Video-Gallery/PowerBI-Time-Intelligence-Calendar-WTD-Y...


Appreciate your Kudos.

aj1973
Community Champion
Community Champion

Hi @Himanshi0291 

I think you are looking to use the Time intelligence function of Power Bi, Like YTD and QTD. For that you will need to create Date table and link it to the  ' Trans date' column in order for the YTD and QTD to get you the result you are looking for.

 

May be a sample would help the community.

 

Regards

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

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.