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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Show Only Matching Values

Hi 

 

Can someone help me on how to create a measure or m-code in showing only values that matched the Invoice Number for the fak column and don't display the rest?

 

//NT

 

tksnota_0-1723475405931.png

 

12 REPLIES 12
Anonymous
Not applicable

Hi @Anonymous 

 

Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster?

If not, could you please share your data(exclude sensitive data), or create some sample data, and your target outcome, so that we can help you better.

Thank you very much for your kind cooperation.

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

not solved yet. i will try to share the pbix files so the forum members can help me...

Anonymous
Not applicable

Hi @Anonymous 

 

You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

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

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

thanks for the fast assistance. is it possible not to use the filter pane but shows blanks for rows that don't match so i can see the whole sheet?

 If(

    SELECTEDVALUE(Sales[Invoice Number]) = SELECTEDVALUE(Sales[faktuurnr]) --Change to your tablename

    ,"Match"

    ," "

 )

Something like that?


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Anonymous
Not applicable

I add the measure in the table but no colum is being created as shown. am i doing something wrong?

 

tksnota_0-1723477275695.png

 

Interesting!

Do some of the rows in this table have a matching faktuurnr?

I can't see faktuurnr in your list of fields, if you add that does it work?

Is it possible that Sales[Invoice Number] on each row of your visual has multiple values in the table?

 

Try putting the original measure that returns 1 and 0s in, does that work?


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Anonymous
Not applicable

i change the faktuurns to an english name called same value. my problem is the measure won't add in the table. any reason why it can't be done?

Is same value not the measure created?

I mean the original column we tested against.

Sales[faktuurnr]

Or are you saying the above column is Same Value and you cannot physically add the measure?


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Could you create a sample pbix file, replicate the scenarios you are facing,share it with us and then myself or @SamWiseOwl can investigate further.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Kaviraj11
Super User
Super User

Hi,

 

You can create a measure as below by replacing with your columns:

 

Matches = IF(CALCULATE(SUM('Table'[A]))=CALCULATE(SUM('Table'[Invoice])),1,0)
 
Then, put the measure into the filter pane of the table visual and have it set to 1
 
Kaviraj11_0-1723475878928.png

 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





SamWiseOwl
Super User
Super User

Hi @Anonymous 

Create a measure like this:

Same day payment =
 If(
    SELECTEDVALUE(Sales[Invoice Number]) = SELECTEDVALUE(Sales[faktuurnr]) --Change to your tablename
    ,1
    ,0
 )
Add it into the filter pane of your visual and filter to 1:

SamWiseOwl_0-1723475830018.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.