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
Anonymous
Not applicable

Anyway to use "sum.if" from excel in powerbi?

I'm working in a strange schema, i don't have relashionships... basicly I have 3 fact tables (sales, giveback and discount)

sales table have 4 columns: Date, Client, Product and Value.
giveback and discount table have 3 columns: Date, Client and Value.

To calculate some measures, I need to multiply the value for the percentage of sales value that value represent...

for example...


tables.png

 

after "cross" using sum.if
final.png


At "production" we have date filter using only to filter the tables, we don't show that column... when I add it in power bi my measure keeps "respecting" dates and dont "cross" the tables, for example...
cross1.png


Maybe the difference between dates?
cross2.png

Our giveback happend for client 837 in 9/6/2017 but we don't have sales in 9/6/2017, so the table don't show my giveback values...

I want "work like excel". Any idea?




1 REPLY 1
ricardocamargos
Continued Contributor
Continued Contributor

Hi @Anonymous,

 

Why don't u append the 3 tables into just one ?

 

Also if u wanna calculate values before aggretation you should use the X functions (SUMX, COUNTX, MAXX....)

 

I hope it helps,

 

Ricardo

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors