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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Cobra77
Post Patron
Post Patron

a line (curve) with 2 colors according to a date chosen in a slicer?

Hello

is it possible on the same line (curve) to have 2 colors according to a date chosen in a slicer ?

 

like with this bar graph : 
in blue it is the actual, in red the forecast (the data are in different fact tables) 

Cobra77_0-1691413623959.png

 

If I convert this graph to lines I get :

Cobra77_1-1691413781920.png

 

But I would not like it to be points but the line like here but suddenly realized with 2 indicators:

Cobra77_2-1691413908669.png


An idea ?

Thanks

 

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi, @Cobra77 

 

You can try the following methods.

Example data:

veqinmsft_0-1691566434356.png

Forecast Measure = Var _actul=SUM(Actual[Actual Value])
Return
IF(_actul=BLANK(),SUM(Forecast[Forecast Value]))

veqinmsft_1-1691566485133.png

veqinmsft_3-1691566523273.png

Is this the result you expected?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @v-eqin-msft 

Thank you for your answer, but we already obtain this result and even by linking the curves, we would like with a single indicator to be able to color from a date the curve of another color, as with the bar chart, and without the have points by putting it in line, just really the curve

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.