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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
raffbr2
Frequent Visitor

Problem with line graph

Hello

 

I have the following graph with no legend:

 

s1.png

And this the same graph with added Legend

s2.png

Why is that happening? This is wrecking my dashboard

 

6 REPLIES 6
richbenmintz
Resident Rockstar
Resident Rockstar

Can you share your pbix, very hard to diagnose this issue without know how the legend item and the other data points are related.



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


I can but will take time but have a look. With an extra filter in a differen column i have the issue

 

The filter is a simpler slide - let me know if you can figure out -if not I ll sent the file

 

 

s3.png

 

without the filter, no problem

 

s4.png

What value are you using for the slicer and how is it related to the filter and measure?



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Unrelated... the slide measure is not used on the measure (below) - the only difference between the correct graph and the messy one is that I removed the slide on a column that is not used on the measure.

 

ScoreTot =
CALCULATE (
(sumX(FILTER(Dados, Dados[resultado]="a"),Dados[Numrec]*[PesoAcordo])-
sumX(FILTER(Dados, Dados[resultado]="p"),Dados[Numrec])+
sumX(FILTER(Dados, Dados[resultado]="i"),Dados[Numrec])-
sumX(FILTER(Dados, Dados[resultado]="r"),Dados[Numrec])+
sumX(FILTER(Dados, Dados[resultado]="e"),Dados[Numrec])
)/sum(Dados[NumRecords]),
FILTER(ALL ( Dados[dataMovIni] ),
Dados[dataMovIni] <= MAX ( Dados[dataMovIni] ) )
)

My guess is that the slice value is effecting the filter context of your measure.



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


I did a calculated column when 1 is for values > 10000 and  0 for less.  It worked - 

 

**bleep**, how come a slices is different than a calculated column???????? 

 

s5.png

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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