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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors