Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi good day,
Can anyone help me to amend my calculated column, I want my **bleep** Earned Column up to current week only
**bleep** Earned = VAR CurrentDate = 'Table#01'[Week No.]
VAR CurrentSubTask = 'Table#01' [Test 2024]
VAR Filteredtable = FILTER('Table#01', 'Table#01' [Week No.]<=CurrentDate && ''Table#01' '[Test 2024] = CurrentSubTask)
return
IF(''Table#01' '[Week No.],
CALCULATE(SUM(''Table#01' '[Weekly_Earned]), Filteredtable))
Thank you
@AllanBerces , Try this
**bleep** Earned =
VAR CurrentWeek = 'Table#01'[Week No.]
VAR CurrentYear = 'Table#01'[Year]
VAR CurrentSubTask = 'Table#01'[Test 2024]
VAR CurrentWeekNum = WEEKNUM(TODAY())
VAR CurrentYearNum = YEAR(TODAY())
VAR FilteredTable = FILTER(
'Table#01',
('Table#01'[Year] < CurrentYearNum) ||
('Table#01'[Year] = CurrentYearNum && 'Table#01'[Week No.] <= CurrentWeekNum) &&
'Table#01'[Test 2024] = CurrentSubTask
)
RETURN
IF(
'Table#01'[Year] < CurrentYearNum ||
('Table#01'[Year] = CurrentYearNum && 'Table#01'[Week No.] <= CurrentWeekNum),
CALCULATE(SUM('Table#01'[Weekly_Earned]), FilteredTable)
)
Proud to be a Super User! |
|
@AllanBerces , Try below mentioned DAX
**bleep** Earned =
VAR CurrentDate = 'Table#01'[Week No.]
VAR CurrentSubTask = 'Table#01'[Test 2024]
VAR Filteredtable = FILTER('Table#01', 'Table#01'[Week No.] <= CurrentDate && 'Table#01'[Test 2024] = CurrentSubTask)
RETURN
IF(
'Table#01'[Week No.] <= CurrentDate,
CALCULATE(SUM('Table#01'[Weekly_Earned]), Filteredtable)
)
Proud to be a Super User! |
|
HI @bhanu_gautam thank you for the reply but same result. b the way I dont have daily date only Week No. and Year
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |