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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Moniek
Resolver I
Resolver I

Missing numbers

Hi,

 

Question..

In a table is column with numbers, I want to know which numbers are missing. Can anyone help me how to find the missing numbers. Thanks!

2 ACCEPTED SOLUTIONS
v-eqin-msft
Community Support
Community Support

Hi @Moniek ,

 

Sure. Just use the current row minus the previous row:

Increasing number = 
var _preRow= CALCULATE(MAX('Table'[Number]),FILTER(ALL('Table'),[Index]=MAX('Table'[Index])-1))
return MAX('Table'[Number])- _preRow

Eyelyn9_0-1654153851407.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Yeeaaaaah have a nice day!!!!

View solution in original post

6 REPLIES 6
v-eqin-msft
Community Support
Community Support

Hi @Moniek ,

 

Sure. Just use the current row minus the previous row:

Increasing number = 
var _preRow= CALCULATE(MAX('Table'[Number]),FILTER(ALL('Table'),[Index]=MAX('Table'[Index])-1))
return MAX('Table'[Number])- _preRow

Eyelyn9_0-1654153851407.png

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-eqin-msft
Community Support
Community Support

Hi @Moniek ,

 

Based on this——I want to know of the next number increase with 1 is

You may firstly add a Index column:

Eyelyn9_2-1654149460235.png

 

Then create a measure to know if increasing with 1:

If Increasing 1 = 
var _preRow= CALCULATE(MAX('Table'[Number]),FILTER(ALL('Table'),[Index]=MAX('Table'[Index])-1))
return IF( MAX('Table'[Number])-1=_preRow,"Yes","No")

Output:

Eyelyn9_1-1654149416853.png

 

And for this——and I want to generate a list of numbers do not increase with 1

The definition of the third parameter for GENERATESERIES()  is the increment value of the sequence. When not provided, the default value is 1. So you could custom the value:

Eyelyn9_3-1654149536740.png

Eyelyn9_4-1654149673168.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-eqin-msft Thanks a lot!!! And if you want to see the number of increasing instead yes or no, is that possible?

Moniek
Resolver I
Resolver I

@amitchandak thanks, for sure that is a solution for a lot of another issues. But in this case I want to know of the next number increase with 1 is and I want to generate a list of numbers do not increase with 1. Is that possible?

amitchandak
Super User
Super User

@Moniek , Create a new table like

 

Except(generateseries(Min(Table[Number]), Max(Table[Number])), values(Table[Number]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Yeeaaaaah have a nice day!!!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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