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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
NewPBIe
Helper II
Helper II

Filter by fiscal year in a measure

Hello everybody.
 
I want this measure to calculate this Percentage using only tasks that belongs to the actual fiscal year.
Measure = 
IF(ISBLANK([All Completed Tasks]/[All Tasks]), 0, [All Completed Tasks]/[All Tasks]*100)
 
I've a DAX calculated column "Year to fiscal year" 
Year to fiscal year = LOOKUPVALUE(Fiscal Year, Calender[Year], YEAR(Task[TaskFinish Date]), Calender[Month], MONTH((Task[TaskFinish Date]), 0)
 
But I am not able to reach "Year to fiscal year" from my measure and set a FILTER.
 
"Year to fiscal year" is in Table 1. Table 1 has a *:1 relation to Calender (from Calender to Table1).
 
What am I doing wrong?
 
Thank you in advance
2 REPLIES 2
Arul
Super User
Super User

@NewPBIe ,

Can you try this formula?

Measure = 
IF(
    ISBLANK([All Completed Tasks] / [All Tasks]),
    0,
    CALCULATE(
        [All Completed Tasks] / [All Tasks] * 100,
        FILTER(
            'Table 1',
            'Table 1'[Year to fiscal year] = MAX(Calender[Fiscal Year])
        )
    )
)

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Thank you Arul, 

 

unfortunately is the Table 1 not reachable from the measure:

 

NewPBIe_0-1676896612557.png

 

I can only reach this "'Heutiges Datum' but no Field in the Table 1.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors