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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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