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

How to apply filters to specific data/value areas

Is there a way to a filter to just one data/value field? I'm using the same data set for a column and line graph but I'd like to filter the line data and leave the column data alone. Any help would be appreciated!

 

5 REPLIES 5
Greg_Deckler
Super User
Super User

You would likely need to write a measure for your line value that returns BLANK except for the specific data you are looking to display.

 


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

As someone who is relatively new to Power BI, could you explain how I do that and what the measure would look like? 

 

With sample data I could be specific to your case. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

 

That being said, let's say you have a Category column as your X axis and in this hypothetical Category column you have values of X, Y and Z but you only want the line to show a value for Y and we will assume that you already have a measure for your line value. You would do this:

Hypothetical Measure = 
  VAR __Category = MAX('Hypothetical Table'[Hypothetical Category Column])
RETURN
  IF(__Category = "Y",[Hypothetical Line Value Measure],BLANK())

 

 


@ 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 Greg, I really appreciate your help. I'll attach some pictures of the data that could perhaps help me explain.

Here is the graph that I'd like to fix. As you can see I'm using the exact same source/data for both the line and the columns. I'd like to filter the line so that it shows an acceptance rate of submissions while the columns show the overall submissions. I know I can do this if I'm able to apply a filter from another set of data that I have that has the catagories that need to filter out. All of the data is linked together as it's all from the same excel spreadsheet. I just want the filter that I apply to only work on the line values.

Column/Line GraphColumn/Line GraphData & FilterData & Filter

 

Hi,

What exact result are you expecting?  Show that in a simple table format.  From the table, we can build any visual we want.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.