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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
anassel
New Member

Calculate and filter

hi team 

 

please help me t reslove this problem 

 

I want to generate a new column in each line there is the product of cellulles selected in green

 

 

 

 

 

 

 1.JPG2.jpg3.jpg

5.JPG

 

4.jpg

 

 

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @anassel,

 

You can create a index column: 

 

index = CALCULATE(COUNT(Table1[Column1]),FILTER('Table1','Table1'[Column1]<=EARLIER(Table1[Column1])))

 

Then create a calculated column below: 

 

Column = CALCULATE(SUM(Table1[Column1]),FILTER('Table1','Table1'[index]>EARLIER(Table1[index])))
+ CALCULATE(SUM(Table1[Column2]),FILTER('Table1','Table1'[index]<EARLIER(Table1[index])))
+ Table1[Column3]

 

q4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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
v-qiuyu-msft
Community Support
Community Support

Hi @anassel,

 

You can create a index column: 

 

index = CALCULATE(COUNT(Table1[Column1]),FILTER('Table1','Table1'[Column1]<=EARLIER(Table1[Column1])))

 

Then create a calculated column below: 

 

Column = CALCULATE(SUM(Table1[Column1]),FILTER('Table1','Table1'[index]>EARLIER(Table1[index])))
+ CALCULATE(SUM(Table1[Column2]),FILTER('Table1','Table1'[index]<EARLIER(Table1[index])))
+ Table1[Column3]

 

q4.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thank you for your solution .

 

but I want instead of the SUM I do the product . 

 

Thanx 😉 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors