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
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.


Go to My LinkedIn Page


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