Reply
andy808
Helper III
Helper III
Partially syndicated - Outbound

Table that filters less than, equal and greater by 1 from another table

I have a Dates Table with FiscalYear column set from 2020 to 2060

The measure CurrentFiscalYear = 

CurrentFiscalYear = IF(MONTH(TODAY()) >= 7, YEAR(TODAY()) + 1, YEAR(TODAY()))
 
I have created a Table below that needs to be dynamic and return Current Fiscal Year (2024), all past years (2020-2023) AND 1 year after Current Fiscal Year (2025).
 
How do I add the 1 year after Current Fiscal Year 2025?

 

andy808_0-1705438714790.png

 

1 ACCEPTED SOLUTION

Syndicated - Outbound

Thank you for helping....yes we do Fiscal Year

I used: 

FiscalYearTest = FILTER(DISTINCT(Dates[FiscalYear]),Dates[FiscalYear] <= (IF(MONTH(TODAY()) >= 7, YEAR(TODAY()) + 1, YEAR(TODAY()) + 1)))
 
And i got
andy808_0-1705445821795.png

 

View solution in original post

4 REPLIES 4
Daniel29195
Super User
Super User

Syndicated - Outbound

 

@andy808 

try this : 

FiscalYearTest = 

VAR currentfiscalyear = year(today())

RETURN

Filter ( 
distinct (Dates[FiscalYear] ) , 

Dates[FiscalYear] <  = currentfiscalyear 
)

 

let me know if it works for you 

Syndicated - Outbound

Thanks, this does not return the Year after the Current Fiscal Year. I am looking for the table to return 2020-2025. Basically Current Fiscal Year +1 year 

Syndicated - Outbound

@andy808 

try this : 

FiscalYearTest = 

CurrentFiscalYear = IF(MONTH(TODAY()) >= 7YEAR(TODAY()) + 2YEAR(TODAY()) +1 )

RETURN

Filter ( 
distinct (Dates[FiscalYear] ) , 

Dates[FiscalYear] <  = currentfiscalyear 
)

 

so if i understand correctly,

if im in month >=7, then my current fiscalyear should be 2025, and thus i need to get data from 2020 till 2026

 

however,

 

if the month <=7 then my currentfiscal year is 2024 and thus i need to get the data from 2020 till 2025.

 

am i right ? 

Syndicated - Outbound

Thank you for helping....yes we do Fiscal Year

I used: 

FiscalYearTest = FILTER(DISTINCT(Dates[FiscalYear]),Dates[FiscalYear] <= (IF(MONTH(TODAY()) >= 7, YEAR(TODAY()) + 1, YEAR(TODAY()) + 1)))
 
And i got
andy808_0-1705445821795.png

 

avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)