Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have created a measure for a date field
Solved! Go to Solution.
@Anonymous
it looks like you have incorrect syntax.
try
CurrentTransCount =
(
VAR _Cuur_start = Min('Date'[Current Date])
VAR _Curr_END = Max('Date'[Current Date])
return
calculate(SUM(Final[TransCountnUm]), Final[Date] >= _Cuur_start, Final[Date] <= _Curr_END )
or
CurrentTransCount =
(
VAR _Cuur_start = Min('Date'[Current Date])
VAR _Curr_END = Max('Date'[Current Date])
return
calculate(SUM(Final[TransCountnUm]),FILTER(ALL(FInal),Final[Date] >= _Cuur_start && Final[Date] <= _Curr_END ))
Try like
Week_CurrentTransCount =
(
VAR _Max = MaxX('Date', 'Date'[Current Date])
VAR _Min = _Max -7
return
calculate(SUM(Final[count]),filter(all('Date'),'Date'[Current Date] >=_Min && 'Date'[Current Date] <= _Max ))
I would just do:
Week_CurrentTransCount =
VAR _Curr_start = Max('Date'[Current Date])
VAR _Curr_END = (_Curr_start - 5)
return
SUMX(FILTER(Final,Final[Date] >= _Curr_start && Final[Date] <= _Curr_END ),Final[count])
I am not able to get any data in my measure.Although it is correct syntax wise .
The measures i used for first 2 columns are working
@Anonymous
it looks like you have incorrect syntax.
try
CurrentTransCount =
(
VAR _Cuur_start = Min('Date'[Current Date])
VAR _Curr_END = Max('Date'[Current Date])
return
calculate(SUM(Final[TransCountnUm]), Final[Date] >= _Cuur_start, Final[Date] <= _Curr_END )
or
CurrentTransCount =
(
VAR _Cuur_start = Min('Date'[Current Date])
VAR _Curr_END = Max('Date'[Current Date])
return
calculate(SUM(Final[TransCountnUm]),FILTER(ALL(FInal),Final[Date] >= _Cuur_start && Final[Date] <= _Curr_END ))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 123 | |
| 99 | |
| 67 | |
| 49 |