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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
varelapablo90
Helper II
Helper II

Filtering whole dataset based on 2 parameters

Hello Power BI Community

 

I need to create the following dashboard to run an analysis on some data.

 

My data set contains 2 tables:

  1. Information on Invoice Level (header) 
  2. Item Level (every item bought on each invoice).

 

The main focus is on the slicers that need to filter the Invoice values and Item values.

Currently everthing is working fine except that I need these slicers to work as the picture below from excel:

 

varelapablo90_1-1653905893224.png

 

Having the following dataset as an example, how is it possible to use the slicers to filter as follows?

If at least one value is above the threshold selected by the user the invoice shouldnt be displayed at all.

 

User selects Invoice value < 300 & Item value <100 (only Invoice A should be displayed) 

Currently Invoice A & B are displayed.

If at least one Item value from the Invoice is above the limit selected by the user then dont show any data at all.

varelapablo90_3-1653906498210.png

 

Look forward for your help

 

Thanks in avance.

1 ACCEPTED SOLUTION

@varelapablo90 hey, take a look at this:
https://spartabiltd-my.sharepoint.com/:u:/g/personal/avishayf_spartabi_com/EdiHT7W28QJGpP7JBMXZHGQB-...
In my solution you need to put the invoice in the rows. (That was the original post).
Is that what you need?
I also changed some stuff in your model that wasn't right regardless of the question.

View solution in original post

6 REPLIES 6
SpartaBI
Community Champion
Community Champion

@varelapablo90 can you share the excel file instead of the pic or even better the PBIX file itself?

@varelapablo90 
step 1:
create this calculated table:

Item Prices = ALLNOBLANKROW(Item_Level[Item Amount])
step 2:
use the column from this table instead of the column from the items table in the slicer.
step 3: create this measure:
Test for max item amount =
VAR _selected_threshold = MAX('Item Prices'[Item Amount])
VAR _max_item_amount = MAX(Item_Level[Item Amount])
RETURN
INT(_max_item_amount < _selected_threshold)
step 4:
put that measure in the visual filter pane and set it to 1


2022-05-19 17_30_22-Re_ Need help on DAX function with measure vs colu... - Microsoft Power BI Commu.png

Showcase Report – Contoso By SpartaBI


SpartaBI_3-1652115470761.png   SpartaBI_1-1652115142093.png   SpartaBI_2-1652115154505.png

Full-Logo11.png

I have updated the PBI file with the rawdata accordingly because it didnt work 😞

 

https://drive.google.com/file/d/1sj1_kZ0RA8QDT8TmspZ3mVU3vAisSfNu/view?usp=sharing

@varelapablo90 hey, take a look at this:
https://spartabiltd-my.sharepoint.com/:u:/g/personal/avishayf_spartabi_com/EdiHT7W28QJGpP7JBMXZHGQB-...
In my solution you need to put the invoice in the rows. (That was the original post).
Is that what you need?
I also changed some stuff in your model that wasn't right regardless of the question.

varelapablo90
Helper II
Helper II

help 😞

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors