Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Week Commencing Error in Dax Formula

Hi Experts

 

Kindly refer to DimDate Table and Visual in First Tab. I am Getting two lots of week commencing values in my table visualsartion...Cannot see why and where the error is..

 

Sees Sample file

https://www.dropbox.com/s/0uyn8c6feqra1bs/Test_.pbix?dl=0 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Correct lastest month like

Latest Month = eomonth(maxx(allselected('DimDate'), 'DimDate'[Date]),0)

 

And all three measures like this example

Crim =
VAR LatestMonthSum =
CALCULATE ( SUM ( 'Test Data_'[cr03a_reportsmade] ),'Test Data_'[IsCurrentYear] = TRUE() ,
FILTER(
'Test Data_',eomonth('Test Data_'[cr03a_period],0)
=[Latest Month]
)
)

Return

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , Correct lastest month like

Latest Month = eomonth(maxx(allselected('DimDate'), 'DimDate'[Date]),0)

 

And all three measures like this example

Crim =
VAR LatestMonthSum =
CALCULATE ( SUM ( 'Test Data_'[cr03a_reportsmade] ),'Test Data_'[IsCurrentYear] = TRUE() ,
FILTER(
'Test Data_',eomonth('Test Data_'[cr03a_period],0)
=[Latest Month]
)
)

Return

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Solved it not to worry - thanks once again

Anonymous
Not applicable

Still getting double week commencing values test it for yourself.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.