Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi Power BI Experts,
How can i reduce the gap between acutal & forecast data in Line chart. I am using date dimension in axis and there is no dates gap between them. How can i show continious data with out displaying the gap. Please help.
Solved! Go to Solution.
Hi @prakash11440278 ,
When you refer that there is no gap you mean that the actuals end in 5th January and the Forecast in 6 of January?
In this case you need to create a measure for the forecast to make the connection depends on how you have the calculation and the model on my case I have
forecast adjusted =
VAR maximumactual =
MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Actuals] > 0 ), 'Table'[Date] )
RETURN
IF (
SELECTEDVALUE ( 'Table'[Date] ) = maximumactual,
SUM ( 'Table'[Actuals] ),
SUM ( 'Table'[Forecast] )
)
In this case I pick up the maximum date of actuals and for that date I return the actuals for any other date I return the forecast final result below:
The only thing is that on the specific day you have both values on the tooltip for that day.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @prakash11440278 ,
When you refer that there is no gap you mean that the actuals end in 5th January and the Forecast in 6 of January?
In this case you need to create a measure for the forecast to make the connection depends on how you have the calculation and the model on my case I have
forecast adjusted =
VAR maximumactual =
MAXX ( FILTER ( ALL ( 'Table' ), 'Table'[Actuals] > 0 ), 'Table'[Date] )
RETURN
IF (
SELECTEDVALUE ( 'Table'[Date] ) = maximumactual,
SUM ( 'Table'[Actuals] ),
SUM ( 'Table'[Forecast] )
)
In this case I pick up the maximum date of actuals and for that date I return the actuals for any other date I return the forecast final result below:
The only thing is that on the specific day you have both values on the tooltip for that day.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsIf you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |