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
maud123
New Member

Creating a measure which calculates a value per row

Hello!

I am working with making a new measure.

First I wanted to make it a column, but seeing how I'm using a dynamic parameter I have come to understand I need to use a measure instead. The parameter is called Parameter and is a numeric range between 1-500

I have a data table with each row representing a year and a quarter ("YYYYQQ" format). I have a numeric column called "Number". And in the visualisations I want For example a table I want it to look like this (if chosen 20 in the what-if parameter):

YearQuarterNumberNumberFactor
2019Q1100020000
2020Q220400

(I have come to understand the measure won't be visible in the data tables, but still can be displayed in a table visualisation)

 

When i write: NumberFactor= Table[Number] * Parameter[Value Parameter] I get the error

" Cannot determine a single value for the column "Number". This can happen when a measure formula refers to a column that contains many values without an aggregation to obtain a single result "

 

Many thanks for any help!

1 REPLY 1
johnt75
Super User
Super User

You need to use an iterator so that you have a row context and can then check the value of Table[Number]

NumberFactor =
SUMX ( 'Table', 'Table'[Number] * Parameter[Value Parameter] )

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