cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

## Problems with Mixed Chart and FIRSTDATE

Good morning

I have a problem with the following chart:

The chart shows a ratio in the columns and the cumulative figure of the same ratio in the line. The problem arises in the value to the left of OCT that captures the value of the cumulative ratio in a space called (blank). The calendar includes dates from October 1st to June 30th, so there is no date before October 1st.

The outline of the measures is as follows:

I can't see what the problem is. If anyone can help me I would be very grateful.

Super User

Cumm Sales =
Var _max =maxX(allselected('Sales'), sales[date])
return
if(=max('Date'[date])<= _max, CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date]))), blank())

Cumm Sales =
Var _max =maxX(allselected('Sales'), sales[date])
return
if(=max('Date'[date])<= _max, CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date]))), blank())