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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

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
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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