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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Nihed
Helper III
Helper III

Dax Help

Hello,

 

Can someone give me an idea about this problem please,

 

Nihed_0-1645130170028.png

 

These rates may change on a monthly basis. In the table above, the most recent rate in the period should be displayed.

Example: if 2022 Q2 is selected in the filter, the rate of June 2022 must be displayed (Last month of the quarter)

my Data:

Nihed_0-1645130373938.png

 

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @Nihed ,

 

I suggest you to create a continuous date table by calendar/calendarauto function. I can see last day of quarter which is in date format in second screenshot date table. However I couldn't see date in your first data screenshot. Did you created a relationship between your date table and your data table? If there is an active relationship by [Quarter/Year] columns, I think your visual will show all values in 2022 Q2 when you select it in slicer. I am still confused about what kind of result you want. Could you share a sample file with me and show me a screenshot with the result you want? This will make me easier to find the solution.

 

Best Regards,
Rico Zhou

 

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

Whitewater100
Solution Sage
Solution Sage

I can't see your data model and if you have a date table.

 

Normally you can do Closing Qtr Rate = CLOSINGBALANCEQUARTE( [Measure for your rate], Dates[Date])

 

If you have sample data model I can take another look.

 

If you have a date table named Dates and have marked it as so.

 

Hope this helps!

I use this table as the date table

 

Nihed_0-1645131077142.png

 

I do not understand..

I don't have a date table in my model

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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