Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi Community,
How can I check if a customer year of transaction is continous or not.
In the table, the customer A is not continous as 2018 transaction is missed.
I have calender table and customer table.
| Year | Customer | Revenue |
| 2015 | A | 50 |
| 2016 | A | 100 |
| 2017 | A | 20 |
| 2019 | A | 40 |
| 2020 | A | 200 |
Thanks.
Solved! Go to Solution.
Is your base data same as what you shared initially? If not, Can you share sample data and sample output in table format? I need to try on data now.
Hi @amitchandak I have created a sample data.
Customer A and B has continous year transaction but not Customer C and D.
@amitchandak got the diff column running. But I am not able to acheive the outcome of my purpose.
@schoden , Have a new column like this in you fact
Diff = [Year] - maxx(filter(Table,[customer] =earlier([customer]) && [Year] <earlier([Year])),[Year])
And then use a measure like
Measure = calculate(distinctcount(Table[Customer]) , filter(Table, Table[Diff]>1))
@amitchandak I have Year from Calender table .
If the new column is created in fact table, Year gets red underlined.
How Can i refer year from calender table in the fact table.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |