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.
While creating calcualted column:
could youplease help me how to use max for single values.... max accepts only column instead of value
-==================
while creating measure : usagedate is not accepting
Solved! Go to Solution.
Hi @Anonymous
You don't need to use MAX in your dormula, remove Max and just type your Variable names.
Try this:
_MeqY2 =
VAR adddays =
DAY ( TODAY () ) + [_SelectedMonthYear]
VAR last5 =
DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) - 5, 1 )
RETURN
IF (
'Usage Tracking'[USAGE_DATE] <= adddays
&& 'Usage Tracking'[USAGE_DATE] >= last5,
1,
0
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
@VahidDM you are right, but if i want to find the MAX variables days and last 6 months, then how to do it? im using max as per migration project code....
using this calculated column i have write another final calculation based on
you are solution works superb...
Hi @Anonymous
You don't need to use MAX in your dormula, remove Max and just type your Variable names.
Try this:
_MeqY2 =
VAR adddays =
DAY ( TODAY () ) + [_SelectedMonthYear]
VAR last5 =
DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) - 5, 1 )
RETURN
IF (
'Usage Tracking'[USAGE_DATE] <= adddays
&& 'Usage Tracking'[USAGE_DATE] >= last5,
1,
0
)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
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 |
---|---|
14 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |