March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
HI,
I create a measure to check if the date is between 2 dates.
Measure | Year | Column A |
0 | 2021 | A |
Measure | Year | Month | Column A |
1 | 2021 | 01 | A |
1 | 2021 | 02 | A |
0 | 2021 | 03 | A |
How to fix the problem and make the result to 1 for 2021 ?
Thank
Solved! Go to Solution.
Hi, @Datavizuserpbi
You can try the following methods.
Measure:
Result =
Var _count1=COUNTX(FILTER(ALL('Table'),[Year]=SELECTEDVALUE('Table'[Year])&&[Measure]=1&&[Month]<=3),[Measure])
Return
IF(_count1=3,0,1)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Datavizuserpbi
You can try the following methods.
Measure:
Result =
Var _count1=COUNTX(FILTER(ALL('Table'),[Year]=SELECTEDVALUE('Table'[Year])&&[Measure]=1&&[Month]<=3),[Measure])
Return
IF(_count1=3,0,1)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Use REMOVEFILTERS against the Month column and return the MAX value.
Mayebe I don't understand but I can't use Max with a measure
You can when you iterate through it. Via MAXX for example.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |