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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
ecroke
Frequent Visitor

Calculated fields in text boxes

This is the document in which I have to transfer into Power Bi. The aspect I am having problems with is outlined in a red box. You must be able to enter data into the “No. of Days in Bin”, “% Increase” and “% Decrease” Boxes.

“Days in Bin” refers to the amount of days you would like to look back on eg. 9 days in “No. of Days in Bin” means it will look back on the previous 9 days and so on. When data is entered into “% Increase (Red)” anything greater than or equal to this figure turns red. This is the same with “% Decrease” except less than or equal to.

Is there anyway of doing this or doing something similar?

Thanks in Advanced

 

SCRAP.png

 

1 ACCEPTED SOLUTION
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @ecroke,

Do you have resource data? You need to load the data from web? If it is, please Get Data->From Web->Type URL, and load the table needed, more details, please review this article

In Power BI desktop, we can not create visual like the box(you can type value into box). You can create a slicer including one field, and you can select a value in slicer, and filter the report.

>>eg. 9 days in “No. of Days in Bin” means it will look back on the previous 9 days and so on.

You can create a new table including No. of Days in Bin, and create a slicer including it.

If you date is continuous, you can create a measure using DATEADD function like the formula. You can refer to this blog.

Nine Day back =CALCULATE(sum(Table[sale]), DATEADD(Table2[date],-9,Day)))

 
For color formating, you can use conditional formating in Table or Matrix visuals.

Best Regards,
Angelia

View solution in original post

1 REPLY 1
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @ecroke,

Do you have resource data? You need to load the data from web? If it is, please Get Data->From Web->Type URL, and load the table needed, more details, please review this article

In Power BI desktop, we can not create visual like the box(you can type value into box). You can create a slicer including one field, and you can select a value in slicer, and filter the report.

>>eg. 9 days in “No. of Days in Bin” means it will look back on the previous 9 days and so on.

You can create a new table including No. of Days in Bin, and create a slicer including it.

If you date is continuous, you can create a measure using DATEADD function like the formula. You can refer to this blog.

Nine Day back =CALCULATE(sum(Table[sale]), DATEADD(Table2[date],-9,Day)))

 
For color formating, you can use conditional formating in Table or Matrix visuals.

Best Regards,
Angelia

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.