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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
heygowtam
Helper II
Helper II

Dax for Auto Change

I am working on the Dashboard which is Season Based 

for Example - Financial Year 2021 - Season 20, the Finacial year 2022 = Season 21, 
Financial Year is from July to June 

Dax Below - 

Season 21 = CALCULATE(SUM('All Seasons'[Bales]),'All Seasons'[season] = 21,'All Seasons'[Parent Company] = "AWN")
/
(CALCULATE(SUM('All Seasons'[Bales]), 'All Seasons'[season]= 21))


is there anyway that we can  make Season to  automate on or after July 1st of every year Season number steps up by 1 
1 ACCEPTED SOLUTION

Hi @heygowtam ,

 

You can use the method that @Anonymous mentioned.

like this:

Add a column:

All Seasons =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2019, 1, 1 ), TODAY () ),
    "Financial Year",
        IF ( MONTH ( [Date] ) >= 7, YEAR ( [Date] ) + 1, YEAR ( [Date] ) )
)

 

If your data refreshed, the DAX code will follow it to refresh.

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
heygowtam
Helper II
Helper II

@Anonymous 
its not working that way 

Hi @heygowtam ,

 

You can use the method that @Anonymous mentioned.

like this:

Add a column:

All Seasons =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2019, 1, 1 ), TODAY () ),
    "Financial Year",
        IF ( MONTH ( [Date] ) >= 7, YEAR ( [Date] ) + 1, YEAR ( [Date] ) )
)

 

If your data refreshed, the DAX code will follow it to refresh.

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi,


Add a season column to your date table with the appropriate season 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.