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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
JeremyyLin
New Member

After Advance Filtering, other visuals not getting exact filtered values.

Hi, 

I am using Advance JsonFilter to filter numbers between a range

     let conditions: IAdvancedFilterCondition[] = [];
    conditions.push({
        operator: "GreaterThanOrEqual",
        value: valueRange[0]
    }); 
    conditions.push({
        operator: "LessThanOrEqual",
        value: valueRange[1]
    });
    let filter = new AdvancedFilter(this.filterTarget, "And", conditions);

    this.host.applyJsonFilter(filter, "general", "filter", powerbi.FilterAction.merge);

The filtered data is accurate from the filter visual point of view

JeremyyLin_2-1662633214751.png

But data range in other visuals is not in the same range as we filtered

 

JeremyyLin_3-1662633237314.png

 

It should start from -99999 but it is giving from -99900 only.

Is this a bug? Or is there anything I am missing?

Thanks for any help!

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @JeremyyLin ,

Please review the following links, hope they can help you.

The Visual Filters API in Power BI visuals

Using the Advanced Filter API

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the reply.

instead of directly using the AdvancedFilter like this
let filter = new AdvancedFilter(this.filterTarget, "And", conditions);

Sample Slicer used
let filter: IAdvancedFilter = { $schema: "http://powerbi.com/product/schema#advanced", ...(new AdvancedFilter(this.filterTarget, "And", conditions)) }

I made the changes and checked but this did not solve my issue.

To be precise
The visual is not filtering values in the level of ten's. 101 to 199 are rounding to 100 and so on

 

JeremyyLin_1-1663088866374.png

 



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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

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

Top Kudoed Authors