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
Talal141218
Helper III
Helper III

Filter based on invoice number

Hi everyone, 

I want to filter the invoice ID based on  Number. For example big than 10000 ist sales invoice and less than 10000 is returens invoice number. I should mention, that's mein data type is SQL. DirectQuery-Modus. 

Thanks in Adnvance 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Talal141218 ,

If I understand correctly, you want to filter the data base on the size of the value( if number>=10000 then sales invoice else invoice number). If yes, you can create a measure as below to judge the status.

 

Flag = IF ( SELECTEDVALUE ( 'Table'[Number] ) < 10000, 1, 0 )

 

Then select the visuan and apply a visual-level fitler on the visual with the conditio(Flag is 1) just as the one in below screenshot:

vyiruanmsft_0-1681874064588.png

 

If the above one can't help you, could you please provide some raw data in your tables(exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Talal141218 ,

If I understand correctly, you want to filter the data base on the size of the value( if number>=10000 then sales invoice else invoice number). If yes, you can create a measure as below to judge the status.

 

Flag = IF ( SELECTEDVALUE ( 'Table'[Number] ) < 10000, 1, 0 )

 

Then select the visuan and apply a visual-level fitler on the visual with the conditio(Flag is 1) just as the one in below screenshot:

vyiruanmsft_0-1681874064588.png

 

If the above one can't help you, could you please provide some raw data in your tables(exclude sensitive data) with Text format and your expected result with backend logic and special examples? It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

 

And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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.