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
abdul26
Frequent Visitor

Add a constant column

I have created a marix with the following details 

 

Rows: Company name 

Columns:   Week numbers 

Values - Values 

 

I wish to add a constant value threshold column. But if a create a measure with a constant value of 30, it will repeat for each column. (i.e. come under each week) 

 

I have attached a screenshot, the threshold column is what I am trying to add

abdul26_0-1665586023574.png

 

I wish to add at once only.

 

Thank You! 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

Assuming the figures under the Week column are derived via a measure (called Measure1), write this measure

Measure = if(hasonevalue(Data[Week]),[Measure1],30)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Assuming the figures under the Week column are derived via a measure (called Measure1), write this measure

Measure = if(hasonevalue(Data[Week]),[Measure1],30)

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Hi @abdul26.

For the measure formula that you used on the value field, they will expand the calculations by current row and column groups.
I'd like to suggest you add a calculated column with a constant value, you can use it on matrix row fields to show the static values.

Regards,

Xiaoxin Sheng

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.