Forum Discussion
Ramiroz
6 years agoFrequent Visitor
Visual interactions selected date overruling actual and forecast
I'm having a challenge to find a way to present the Orders to-date on different visuals (bar and Gauge measure). The solution I'm looking for is to reflect in the Guage visual based on the follow...
- 6 years ago
Hi Ramiroz ,
Try the following code:
Actual-To-date = IF ( ISFILTERED ( Query1[Date] ); CALCULATE ( SUM ( Query1[Orders] ); FILTER ( ALL ( Query1[Date]; Query1[Actual/Forecast] ); Query1[Date] <= MAX ( Query1[Date] ) ) ); CALCULATE ( SUM ( Query1[Orders] ); Query1[Actual/Forecast] = "ACTUAL" ) )Check PBIX file attach.
MFelix
Super User
6 years agoHi Ramiroz ,
Try the following code:
Actual-To-date =
IF (
ISFILTERED ( Query1[Date] );
CALCULATE (
SUM ( Query1[Orders] );
FILTER (
ALL ( Query1[Date]; Query1[Actual/Forecast] );
Query1[Date] <= MAX ( Query1[Date] )
)
);
CALCULATE ( SUM ( Query1[Orders] ); Query1[Actual/Forecast] = "ACTUAL" )
)
Check PBIX file attach.