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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Pikachu-Power
Impactful Individual
Impactful Individual

Simple Measure Replace Today() with Date_Create

Hi All,
 
I have the following Measure in a line chart:
 
Measure = CALCULATE(COUNT(Table[PNR]), Table[Due_Date]<TODAY())
 
Tabelle.PNG
 
In the line Chart I have to replace TODAY() with Date_Create to get history instead of the todays value.
Date_Create is connectid with Calender[Date]. What would be the right expression?
I tried MAX() and SELECTEDVALUE() but dont work.
1 ACCEPTED SOLUTION

Hi , @Pikachu-Power 

Could you please tell me whether your problem has been solved?
If it is,  please mark your reply as Answered to close this thread.

It will help other community members easily find the solution when they get the similar issue.

 

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Pikachu-Power , Not very clear.

Try like

Measure = CALCULATE(COUNT(Table[PNR]), Table[Due_Date] in allselected(Table[Due_created] ) )

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

I think I could solve it

 

VAR Date = MAX(Calender[Date])
RETURN
Measure = CALCULATE(COUNT(Table[PNR]), Table[Due_Date] < Date )
 
And Calender is connected with Table[Due_created].

Hi , @Pikachu-Power 

Could you please tell me whether your problem has been solved?
If it is,  please mark your reply as Answered to close this thread.

It will help other community members easily find the solution when they get the similar issue.

 

Best Regards,
Community Support Team _ Eason

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
Top Kudoed Authors