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
Anonymous
Not applicable

Date Slicer HELP

Sample data:

Month         Net Asset

2018/1/1     100

2018/2/1     200

2018/5/1     300

2019/1/1     400

2019/2/1     500

2019/3/1    600

2019/5/1    700

For the line and column chart,

I want it shows in table(only select the newest value): 

Month         Net Asset

2019/5/1    700

How to do like that? Thanks

 

We have filters for date slicer, Asset Class, Group Name and Investment Product

 

Calendar = CALENDAR(MIN('data - fund level'[Month]), MAX('data - fund level'[Month]))
selected date = SELECTEDVALUE('Calendar'[Date])
flag3 =
CALCULATE (
MAX ( [Month] ),
FILTER (
ALLEXCEPT ( 'data - fund level',
'data - fund level'[Group Name], 'data - fund level'[Current CIFSC Asset Class],'data - fund level'[Investment Product Type] ),
[Month] <= [selected date]
))
Check = IF(LASTNONBLANK('data - fund level'[Month], 1)=[flag3],1,0)
LateAsset = CALCULATE(sum('data - fund level'[Net Assets])+0, Filter('data - fund level',[Check] = 1))
 
LateAsset should be the net assets I wanted but it runs wrong... Could someone help me check it?
 
11 REPLIES 11
amitchandak
Super User
Super User

is flag3 returning correct month?

 

try like

Calendar = CALENDAR(MIN('data - fund level'[Month]), MAX('data - fund level'[Month]))
selected date = SELECTEDVALUE('Calendar'[Date])
flag3 =
CALCULATE (
MAX ( [Month] ),
FILTER (
ALLEXCEPT ( 'data - fund level',
'data - fund level'[Group Name], 'data - fund level'[Current CIFSC Asset Class],'data - fund level'[Investment Product Type] ),
[Month] <= [selected date]
))
LateAsset = CALCULATE(sum('data - fund level'[Net Assets])+0, Filter('data - fund level'[Month] = flag3))

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Capture.PNG

Anonymous
Not applicable

Anyone can help me out? Thanks!

the first parameter of filter is table name, please add that

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Sorry. I want it to be the lastest value within the date slicer range not for a spefic date.

dax
Community Support
Community Support

Hi @Anonymous ,

It seems that you want to show max date value in table based on date slicer, right? If so, you could refer to my sample for details.

Best Regards,
Zoe Zhi

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

 

Anonymous
Not applicable

The measure always shows blank in my table. It is summed by "group name" and also filtered by asset class, group name, investment product

dax
Community Support
Community Support

Hi @Anonymous ,

You said this don't work, right? So if possible could you please inform me more detailed information(such as your expected output and your sample data or your pbix file)? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

Anonymous
Not applicable

The asset amount is still not right (always shows $219 at the whole months untill it comes to the end of the month)...

Anonymous
Not applicable

upupuupupu

Anonymous
Not applicable

The flag is not right..

 

 
 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors