cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
jaco1951
Helper III
Helper III

Find last date that exist in my list by each month

Dear all

 

I have a list of currency rates, and I need to pull the last date of currency rates from each month, so EndOfMonth is not working in this case.

 

I have tried with this forumla, but it doesn't seem to give any results:

 

endOfMonth_1 =
CALCULATE(

MAX(CurrencyRates[Date_Currency]);

ALLSELECTED(currencyRates[YearMonth])

)

 

Does anyone have ideas on how to pick this date and to show the Currency_Value based on this selection?

 

Kind regards

Espen

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @jaco1951

 

Please see attached file here

 

Hope it helps

 

This is the Measure I used

 

EndOfMonth_rate =
VAR Last_Date =
    ENDOFMONTH ( VALUES ( CurrencyRates[Date] ) )
RETURN
    CALCULATE (
        SELECTEDVALUE ( CurrencyRates[Rate] ),
        CurrencyRates[Date] = Last_Date
    )

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

Hi @jaco1951

 

Please see attached file here

 

Hope it helps

 

This is the Measure I used

 

EndOfMonth_rate =
VAR Last_Date =
    ENDOFMONTH ( VALUES ( CurrencyRates[Date] ) )
RETURN
    CALCULATE (
        SELECTEDVALUE ( CurrencyRates[Rate] ),
        CurrencyRates[Date] = Last_Date
    )

Regards
Zubair

Please try my custom visuals

Thank you very much!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors