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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Wresen
Post Patron
Post Patron

Calculate on each row

Hi and thx for reading this.

 

I have a simple problem i belive but i cant get it to work as i want.
I have a table like below:

c111.PNG

I want to have a measure that multiplys each rows "Sum of Value" with "Proc Value.
I want to be able to remove all columns except Month and measure to get a resulat like:

C222.PNG

 

Thanks so much for any help..

1 ACCEPTED SOLUTION
Wresen
Post Patron
Post Patron

I think i have found a solution: (maybe not the best but i seems to work)

Measure  = var _proc  = CALCULATE(sum(Sheet1[Proc]),filter((Sheet1),Sheet1[Proc] <> BLANK()))
var _value = CALCULATE(sum(Sheet1[value]),filter((Sheet1),Sheet1[Proc] <> BLANK()))
Var div = _proc/_value
return
div * _value

View solution in original post

3 REPLIES 3
Tahreem24
Super User
Super User

@Wresen  TRy this measure: 

Measure = IF(BLANK(Proc Value), Blank(), SUM(Values) * SUM(Proc Value))

Then take this Month and  Measure in a table.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hi @Tahreem24 
Thanks for your reply, but I am sorry but i dont get that mesure to work at all.

 

 

 

Wresen
Post Patron
Post Patron

I think i have found a solution: (maybe not the best but i seems to work)

Measure  = var _proc  = CALCULATE(sum(Sheet1[Proc]),filter((Sheet1),Sheet1[Proc] <> BLANK()))
var _value = CALCULATE(sum(Sheet1[value]),filter((Sheet1),Sheet1[Proc] <> BLANK()))
Var div = _proc/_value
return
div * _value

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors