Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Good afternoon
I have this DAX formula to segment production by month:
Solved! Go to Solution.
Hi @Syndicate_Admin ,
You can modify your formula like below:
MesF =
SWITCH (
TRUE (),
MAX ( Table1[DATE] ) > DATE ( 2023, 1, 20 )
&& MAX ( Table1[DATE] ) < DATE ( 2023, 2, 21 ), "February2023",
MAX ( Table1[DATE] ) > DATE ( 2023, 2, 20 )
&& MAX ( Table1[DATE] ) < DATE ( 2023, 3, 21 ), "March 2023",
"Out of Range"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
You can modify your formula like below:
MesF =
SWITCH (
TRUE (),
MAX ( Table1[DATE] ) > DATE ( 2023, 1, 20 )
&& MAX ( Table1[DATE] ) < DATE ( 2023, 2, 21 ), "February2023",
MAX ( Table1[DATE] ) > DATE ( 2023, 2, 20 )
&& MAX ( Table1[DATE] ) < DATE ( 2023, 3, 21 ), "March 2023",
"Out of Range"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Just create a Calendar Table with calculated column formulas for Year, Month name and Month number. Sort the Month name by the Month number. Create a relationship from the Date column of Table1 to the Date column of the Calendar Table.
I already saw the error, after publishing the post. The condition of minor referred to the entire table1 and had to be dated.
Thank you
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
120 | |
80 | |
47 | |
45 | |
32 |
User | Count |
---|---|
174 | |
90 | |
69 | |
47 | |
46 |