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.
HI All,
I have a dataset in Power BI in this format.
Besides table does NOT have any date field.
So, I can use same method to extract the Year following this link
CONCATENATE, YEAR, MONTH and DATEVALUE DAX functions to achieve this.
However, I need to extract 1st Half (Jan - June) and 2nd Half (July - Dec) for that specific year such as 2015, 2016, 2017 etc.
I found some amazing blog to extract Week, Month, and Quarter. But I need six monthly function.
Any inputs will be highly appreciated.
Thanks in advance.
Solved! Go to Solution.
Create a calculated column,
IF(LEFT('Table'[Period],3) = "2nd H1","Jul - Dec","Jan - Jun")
Let me know if it works or not.
It will be helpful to assist if you share some sample data.
Correct me if I'm wrong.
Your requirement is,
if the value has 1st half then you wanted to have it Jan - Jun. Right?
For example,
2nd H1 FY2017 will be Jul - Dec
@SivaMani Excatly!
There will be 2 columns for user so that can report
Create a calculated column,
IF(LEFT('Table'[Period],3) = "2nd H1","Jul - Dec","Jan - Jun")
Let me know if it works or not.
@SivaMani You are superstar ...
It worked like breeze
PeriodYear = IF(LEFT(HCM[Period],3) = "2nd", "Jul - Dec", "Jan - Jun")
@Anonymous,
Thank you for your appreciation;)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
76 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |