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
powerbinovice12
Regular Visitor

Limit table interactions to only one line in Power BI line chart

Hello, I need assistance with a challenge in Power BI.

 

  • I have a table that contains rows of various sales items such as books, toys, etc.
  • I have a line chart connected to this table that displays three lines representing past closed sales, future closed sales, and possible future sales over several months.
  • Currently, when I select a sales item from the table, all three lines in the chart adjust to reflect the sales of that item. However, I want only the "Possible future sales" line to update while the other lines remain unchanged.

 

Can anyone suggest a solution? Thank you in advance for your help!

4 REPLIES 4
Greg_Deckler
Super User
Super User

@powerbinovice12 You would need to adjust your measures in your line chart to accomplish this. You can use ALL in the 2 measures you don't want to change and then filter down to just the filters within the line chart visual that you want to keep. Alternatively you could potentially use REMOVEFILTERS/KEEPFILTERS to accomplish this. Sample data would help me be more specific to model this up. 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi, thank you for your quick reply! I have attached some sample data if that will help. This is what the chart looks like and it is connected to a line chart that has the sales amount of  past closed sales, future closed sales, and possible future sales over several months. 

powerbinovice12_0-1678810606278.png

 

 

@Greg_Deckler 

Data: 

Item NameCompany NameRevenueSell RateDate
CupsPlasticware100000050%1-Jan-22
Remote Control CarFisher Price23304143%1-Jan-22
BlendersHomeTech Innovations382436445%1-Jan-22
Tablets Tech Oasis332929656%1-Jan-22
MakeupBeauty Bliss193277439%1-Jan-22
BatsAthletic Edge303179465%1-Jan-22
GlovesLuxe Threads170054954%1-Jan-22
StaplersWrite Away171325390%1-Jan-22
PuzzelsPlayful Wonders262760578%1-Jan-22
CupsPlasticware344476267%1-Feb-22
Remote Control CarFisher Price321608653%1-Feb-22
BlendersHomeTech Innovations180921656%1-Feb-22
Tablets Tech Oasis202555377%1-Feb-22
MakeupBeauty Bliss369349145%1-Feb-22
BatsAthletic Edge146784654%1-Feb-22
GlovesLuxe Threads114924334%1-Feb-22
StaplersWrite Away364506352%1-Feb-22
PuzzelsPlayful Wonders154813934%1-Feb-22

 

Measure 1 ( past closed sales): = sum(total revenue)

Measure 2 (future closed sales): =sum(total revenue) 

Measure 3 (possible future sales):  *complex formula 

 

*they are all in different tables. I apologize for the vagueness, this is a work project. If I can claryify more, please let me know and I will do my best

@powerbinovice12 Could you please paste that data as text so I can copy and paste into an Enter Data query? Also, can I get your measure formulas?


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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