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
vchauhan011
Frequent Visitor

MTD,QTD,YTD Slicer for Actual VS Targeted Hours

Hello Everyone,

 

I want to create a MTD,QTD,YTD Slicer which can filter Actual and Targeted Hours. I created MTD,QTD,YTD table using DAX and made connections between that table and my primary data source (which is a PowerBI dataset) using a bridge table. It is working for actual hours. However I am struggling to make it work for the targeted hours.  Targeted hours are summarized by months in the data source. that data source does not have a date column. targeted hours data source looks something like this table.  Is there a way I can make some changes in the targeted hours table in the powerBI and make a relationship between  the bridge table and targeted hours table?

MonthsHours
July42342
August86785
September25656
October99658
November47476
December63622
January23434
February564641
March 342422
April 324242
May 23423
June 53453

 

I am still new to this and I do not know if this is enough data to figure out the solution. Please let me know if you have any questions. Thank you in advance! 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@vchauhan011 , This what I usually do, I assign a date like

Date = "01 " & [Month] & " "  & [Year]

 

Date = "01" & [Month] & " 2021"

 

 

Refer to my article and blog

Power BI Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...

 

How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

https://www.youtube.com/watch?v=yPQ9UV37LOU

View solution in original post

2 REPLIES 2
vchauhan011
Frequent Visitor

@amitchandak. This did work! Thank you very much for sharing this solution with me. really appriciate your help.

amitchandak
Super User
Super User

@vchauhan011 , This what I usually do, I assign a date like

Date = "01 " & [Month] & " "  & [Year]

 

Date = "01" & [Month] & " 2021"

 

 

Refer to my article and blog

Power BI Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...

 

How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

https://www.youtube.com/watch?v=yPQ9UV37LOU

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.