Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
AlanP514
Helper V
Helper V

1 St Half of the Year (H1) & 2nd Half of the Year (H2)

Hi All, 

AlanP514_0-1674275795299.pngAlanP514_1-1674275811237.pngAlanP514_2-1674275825158.png

I want to create H1 (1St Half Of the year and 2nd Half of the year Time Intelligence along with these YTD, MTD , QTD 
I created 3 dax for time intelligence for time intelligence 
1 Current year Time intelligence based on that previous year time intelligence and Previous period time intelligence but  i wanted to add H1 & H2 also include same for this measures 


Here i attached dummy pbix file 


Thanks
Alan P James





1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

One of ways to achieve this is to create a new column in a Dim-Calendar table that shows Half-Start-Date.

By using this column, I think it will provide easier way to create DAX measures to provide the expected result.

 

Half Start Date CC = 
IF (
    Dim_Calendar[Month] <= 6,
    STARTOFYEAR ( Dim_Calendar[Date] ),
    DATE ( Dim_Calendar[Year], 7, 1 )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors