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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Good day can anyone help me edit my caculated column. What i required is if the count on column Count/DirectInDirect/Location is same on the other day with the week then the WKLY POB PLAN will show blank on the other day.
DESIRED OUTPUT
| Date | Trade | Location | Direct/InDirect | Week No: | Count/DirectInDirect/Location | WKLY POB PLAN |
| 2/15/2026 | Mech | North | InDirect | 7 | 12 | 12 |
| 2/15/2026 | Mech | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Mech | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Mech | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Mech | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Civil | North | InDirect | 7 | 12 | 12 |
| 2/15/2026 | Civil | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Civil | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Civil | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Civil | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Mech | North | Direct | 7 | 12 | 12 |
| 2/15/2026 | Mech | North | Direct | 7 | 12 | 12 |
| 2/11/2026 | Civil | South | InDirect | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/11/2026 | Civil | South | Direct | 7 | 15 | 15 |
| 2/12/2026 | Civil | South | InDirect | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 | |
| 2/12/2026 | Civil | South | Direct | 7 | 15 |
Solved! Go to Solution.
Hi @AllanBerces,
I created this code that seems to work
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadWant to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi @AllanBerces
try attached PBIX.
if this doesnt work please help with sample explanation for few rows.
Please give kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
hello @AllanBerces
what is your DAX in there?
seems different from my result.. there should be a value on 2/11/2026 while your screenshot show blank.
also for the bottom highlight, please adjust the DAX into this (the red one). I dont realize there will be a different 'Table'[Count/DirectInDirect/Location] value in same date.
WKLY POB PLAN =
var _Yearweek = YEAR('Table'[Date])&FORMAT(WEEKNUM('Table'[Date]),"00")
var _Mindate =
MINX(
FILTER(
'Table',
YEAR('Table'[Date])&FORMAT(WEEKNUM('Table'[Date]),"00")=_Yearweek
),
'Table'[Date]
)
var _IF =
IF(
_Mindate='Table'[Date],
_Mindate
)
Return
IF(
'Table'[Date]=_Mindate,
'Table'[Count/DirectInDirect/Location]
)
Thank you.
Hi @AllanBerces,
Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @Irwan, @Praful_Potphode & @FBergamaschi for sharing valuable insights.
Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.
Thank you for being part of the Microsoft Fabric Community.
Hi @AllanBerces
try attached PBIX.
if this doesnt work please help with sample explanation for few rows.
Please give kudos or mark it as solution once confirmed.
Thanks and Regards,
Praful
hello @AllanBerces
please check if this accomodate your need.
create a new calculated column with following DAX.
WKLY POB PLAN =
var _Yearweek = YEAR('Table'[Date])&FORMAT(WEEKNUM('Table'[Date]),"00")
var _Mindate =
MINX(
FILTER(
'Table',
YEAR('Table'[Date])&FORMAT(WEEKNUM('Table'[Date]),"00")=_Yearweek
),
'Table'[Date]
)
var _IF =
IF(
_Mindate='Table'[Date],
_Mindate
)
Return
MINX(
FILTER(
'Table',
'Table'[Date]=_IF
),
'Table'[Count/DirectInDirect/Location]
)
Hi @Irwan the location is different it should be 15
| |||||||
hello @AllanBerces
what is your DAX in there?
seems different from my result.. there should be a value on 2/11/2026 while your screenshot show blank.
also for the bottom highlight, please adjust the DAX into this (the red one). I dont realize there will be a different 'Table'[Count/DirectInDirect/Location] value in same date.
WKLY POB PLAN =
var _Yearweek = YEAR('Table'[Date])&FORMAT(WEEKNUM('Table'[Date]),"00")
var _Mindate =
MINX(
FILTER(
'Table',
YEAR('Table'[Date])&FORMAT(WEEKNUM('Table'[Date]),"00")=_Yearweek
),
'Table'[Date]
)
var _IF =
IF(
_Mindate='Table'[Date],
_Mindate
)
Return
IF(
'Table'[Date]=_Mindate,
'Table'[Count/DirectInDirect/Location]
)
Thank you.
Hi @AllanBerces,
I created this code that seems to work
If this helped, please consider giving kudos and mark as a solution
@me in replies or I'll lose your threadWant to check your DAX skills? Answer my biweekly DAX challenges on the kubisco Linkedin page
Consider voting this Power BI idea
Francesco Bergamaschi
MBA, M.Eng, M.Econ, Professor of BI
Hi @FBergamaschi @Praful_Potphode @Irwan @v-ssriganesh thank you very much for the reply, work as i need
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 48 | |
| 38 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 76 | |
| 35 | |
| 28 | |
| 25 |