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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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. 


@ 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?


@ 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.