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! Learn more

Reply
Ganesh31
Frequent Visitor

Hi experts, i have data in Data base as shown in below, i want to create a measure as below

Ganesh31_0-1673410372661.png

i have a data in sql as show in above figure, now i want to make a measure in power bi by taking only few coloumns such as  

measure = (shed1 po washing line *3) + (shed2 - Dynamic-PCU * 4) 

 

how to do that please suggest the way to that!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Ganesh31 ,

You can create a measure as below to get it, please find the details in the attachment.

Measure =
VAR _shed1 =
    CALCULATE (
        SUM ( 'Table'[Consumption] ),
        'Table'[Meter] = "Shed1-PO Washing Line"
    )
VAR _shed2 =
    CALCULATE ( SUM ( 'Table'[Consumption] ), 'Table'[Meter] = "Shed2-Dynamic-PCU" )
RETURN
    _shed1 * 3 + _shed2 * 4

yingyinr_0-1673512241855.png

Best Regards

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Ganesh31 ,

You can create a measure as below to get it, please find the details in the attachment.

Measure =
VAR _shed1 =
    CALCULATE (
        SUM ( 'Table'[Consumption] ),
        'Table'[Meter] = "Shed1-PO Washing Line"
    )
VAR _shed2 =
    CALCULATE ( SUM ( 'Table'[Consumption] ), 'Table'[Meter] = "Shed2-Dynamic-PCU" )
RETURN
    _shed1 * 3 + _shed2 * 4

yingyinr_0-1673512241855.png

Best Regards

VijayP
Super User
Super User

Lets us asume your table name is Table

then the formula will be

Calculate ( sum(Table[consumption]), Filter(all(Table[Meter]), Table[Meter]=" shed 1 " || table[meter] = "shed 2]))*3




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

@Ganesh31 

You must be more clear !

Do you want the value of consumption of Shed1 multiplied by 3 and if you can give a business objective , will help me to answer you!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


yes,i want to create a measure by taking only few rows out of whole data

 

measure = (shed 1's Consumption *3)+(shed 2's consumption*4)

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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