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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
JordanSchuld
New Member

Why is this filter/column not working?

I have data that is a bunch of job listings from different sites. In the table you can see I have multiple job listings. The column "Total Listings" count how many times that specific listing on the specific website was posted. You can see how I made it in photo 2. I want to make a filter to only show jobs that have been posted X amount of times. See photo 3 for how I have it set up. I feel like this should work, but as you can see in photo 1 every row is being shown as "Under 20". How can I fix this so there are different amount and I can make my filter. Right now the only option in the filter is "Under 20"

I'm brand new to Power BI so I may need more clarification than you would think lol.

 

Photo 1: Table

Screenshot 2024-06-26 105355.png

Photo 2: Total Listings - Count how many times the job was posted

Screenshot 2024-06-26 105413.png

Photo 3: Count Listing - Column to filter by how many times the job was posted

Screenshot 2024-06-26 105456.png

1 ACCEPTED SOLUTION
v-yaningy-msft
Community Support
Community Support

Hi, @JordanSchuld 

You can try the following dax to solve the problem.

vyaningymsft_1-1720061604476.png

 

Count Listing = 
CALCULATE (
    IF (
        [Total Listings] >= 3,
        "3+",
        IF ( [Total Listings] >= 2, "2+", "Under 2" )
    )
)

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

View solution in original post

1 REPLY 1
v-yaningy-msft
Community Support
Community Support

Hi, @JordanSchuld 

You can try the following dax to solve the problem.

vyaningymsft_1-1720061604476.png

 

Count Listing = 
CALCULATE (
    IF (
        [Total Listings] >= 3,
        "3+",
        IF ( [Total Listings] >= 2, "2+", "Under 2" )
    )
)

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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