Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
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!
Solved! Go to Solution.
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
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.
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
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.
Hi @Moniek ,
Based on this——I want to know of the next number increase with 1 is
You may firstly add a Index column:
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:
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:
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?
@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?
@Moniek , Create a new table like
Except(generateseries(Min(Table[Number]), Max(Table[Number])), values(Table[Number]))
Yeeaaaaah have a nice day!!!!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |