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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
kavster
Frequent Visitor

Cumulative Date Count Problem

This one has me baffled.  I am trying to produce a cumulative date count up to a specific date.
https://drive.google.com/file/d/1iPdmcRRFr5_Zyn5jW56IXr_rL3G2FG_I/view?usp=sharing

If I use a measure with a specific date hard coded in it works great (Cumulative_Forecast_3).

 

If I use a measure with an embedded measure pulling the date from a lookup table (which returns the correct date and the measure is formatted as a date) it returns some blanks (Cumulative_Forecast_4).

 

You can see the measures and counts from the two measures side by side in the attached file.

 

Ultimately I want the lookup to work and not hardcode; but I cannot understand why, when the lookup date measure returns a date of 2022,05,29 it doos not calculate the same count, as when I hard code in 2022,05,29.  Any thoughts?

 

5 REPLIES 5
kavster
Frequent Visitor

Still puzzling on this one if anyone can help.

Hi, @kavster 

Have you tried adding a variable to the measure ‘Cumulative_Forecast_4’ to statically store the result of the measure ‘SelectedDatadate’?

 

Best Regards,
Community Support Team _ Eason

 

Hi,

I checked but I only see the screencapture. Could you please share the sample pbix file's link?


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Jihwan_Kim
Super User
Super User

Hi,

I think the link needs access code.

Could you please check?


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Sorry now anyone with the link should be able to access the file.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.