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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Spotto
Helper IV
Helper IV

How to increment a column from the present day

hello guys i need a big help.
I have a table that has a calculated column, I needed that when this column gives the result 3, the b.i can count how many days from the day the 3 appeared, how many days the 3 will appear, that is, I needed to increment the current day with the following days .

 

EXAMPLE:

Today

Spotto_0-1654208664658.png

 

Next Day...

Spotto_1-1654208721995.png

 

Next Day...

Spotto_2-1654208860267.png

 

and later it will add all the days that the column continues with the number 3

 

tks for help me 🙂

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Spotto , do you have a date column? If so we can do. We need some reference point of data to be added

 

example

new column =

var _1  = datediff([Date], today(), day)

return

if(_1 <=3, _1, 3)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Spotto , do you have a date column? If so we can do. We need some reference point of data to be added

 

example

new column =

var _1  = datediff([Date], today(), day)

return

if(_1 <=3, _1, 3)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Users online (6,264)