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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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.

 



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!:
Power BI Cookbook Third Edition (Color)

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())

 

 



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!:
Power BI Cookbook Third Edition (Color)

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.