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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
abdul26
Frequent Visitor

Adding Average and a Constant Threshold 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).

Also, I want to add an average column as well 

I have added a sample data. 

 

abdul26_0-1665590435077.png

 

Thank You! 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @abdul26 ,

 

Here I create a sample to have a test.

RicoZhou_0-1665630840661.png

I suggest you to create a Threhshold table and create a relationship between it and your Fact table.

RicoZhou_1-1665630857590.png

Relationship:

RicoZhou_2-1665630911868.png

Measure:

Measure = 
IF(HASONEVALUE('Table'[Week numbers]),SUM('Table'[Values]),AVERAGE('Table'[Values]))

Create a matrix as below, we will turn off "Stepped layout" in Row headers.

RicoZhou_4-1665631131406.png

We will show average in column subtotal by measure. So we need to rename it.

RicoZhou_5-1665631146899.png

Result is as below.

RicoZhou_3-1665631099178.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @abdul26 ,

 

Here I create a sample to have a test.

RicoZhou_0-1665630840661.png

I suggest you to create a Threhshold table and create a relationship between it and your Fact table.

RicoZhou_1-1665630857590.png

Relationship:

RicoZhou_2-1665630911868.png

Measure:

Measure = 
IF(HASONEVALUE('Table'[Week numbers]),SUM('Table'[Values]),AVERAGE('Table'[Values]))

Create a matrix as below, we will turn off "Stepped layout" in Row headers.

RicoZhou_4-1665631131406.png

We will show average in column subtotal by measure. So we need to rename it.

RicoZhou_5-1665631146899.png

Result is as below.

RicoZhou_3-1665631099178.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you for the detailed reply @Anonymous 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 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.