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.
So in my example:
Thanks!
Solved! Go to Solution.
Hi @The_Clam ,
Please refer to my pbix file to see if it helps you.
Create a measure.
Measure2 =
VAR _cur_month =
MONTH ( TODAY () )
VAR _cur_year_month =
YEAR ( TODAY () ) * 100
+ MONTH ( TODAY () )
VAR _year_month =
SELECTEDVALUE ( 'DateTable'[MonthYearSort] )
VAR _count =
CALCULATE (
COUNT ( Sheet1[ID] ),
FILTER (
ALL ( Sheet1 ),
Sheet1[year] = SELECTEDVALUE ( Sheet1[year] )
&& Sheet1[MONTH] = SELECTEDVALUE ( Sheet1[MONTH] )
)
) + 0
VAR _result =
IF ( _year_month <= _cur_year_month, _count )
RETURN
_result
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
This measure works
Measure = if(today()<=max(DateTable[Date]),COUNTA(Sheet1[ID]),0)
Hope this helps.
Hi @The_Clam ,
Please refer to my pbix file to see if it helps you.
Create a measure.
Measure2 =
VAR _cur_month =
MONTH ( TODAY () )
VAR _cur_year_month =
YEAR ( TODAY () ) * 100
+ MONTH ( TODAY () )
VAR _year_month =
SELECTEDVALUE ( 'DateTable'[MonthYearSort] )
VAR _count =
CALCULATE (
COUNT ( Sheet1[ID] ),
FILTER (
ALL ( Sheet1 ),
Sheet1[year] = SELECTEDVALUE ( Sheet1[year] )
&& Sheet1[MONTH] = SELECTEDVALUE ( Sheet1[MONTH] )
)
) + 0
VAR _result =
IF ( _year_month <= _cur_year_month, _count )
RETURN
_result
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
97 | |
94 | |
74 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |