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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Help: formula find or search

Hello!!

Im new in PBI, I want someone could help me with this:

 

I have a column that calculates with numbers that have two decimals, I need (without considering the decimals) to take the last three digits and if these are zeros (the three) take the thirty largest ones, for example
Colum
LC
100100.45
2345000.00
34000.10
123000.00

I should return the 2nd, 3rd and 4th and those sort from highest to lowest and return the first 30 records.

Thank you very much for your help
Monica

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

Try this code creating a new column:

Test = IF(RIGHT(INT(Table1[Column1]); 3) = "000"; 1; 0)

 

After that you can filter the report or page by this new column.

 

 

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @Anonymous

 

I am trying to undeerstand, but sorry, couldnet get your question. Could you please explain what logic you want?

 

Thanks

Raj

Anonymous
Not applicable

Hi!!!

Thanks.

 

This is the scenario:  I have a colum with number like:  12,345.89, 673,000.76, 8700.00, 34,000.00 etc. And I need only the records when the last three digits before the dot, are 0; for example from this list; I only should show 673,000.76 and 34,000.00 (this two numbers have three digits cero, before de dot.

 

I dont know how to do that.

Anonymous
Not applicable

Hi

 

Use this formula to create a new column and filter by 1 to get the desired result.

 

Flag_Column = IF( MOD(TRUNC(Table1[Column1]),1000)=0,1,0)

 

Thanks

Raj

 

 

Hi @Anonymous,

 

Try this code creating a new column:

Test = IF(RIGHT(INT(Table1[Column1]); 3) = "000"; 1; 0)

 

After that you can filter the report or page by this new column.

 

 

Anonymous
Not applicable

Im not sure if I can ask here for another or in a new post.

 

For the same situation, if I only want to show 30 rows (the 30 bigger), is possible to add this in the same Column?

Hi @Anonymous,

 

You 'd better create a new post for a new question.

 

That will be convenient for people who may have the same question can get the solution directly.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
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 help!!! 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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