Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello there 🙂
I was wondering if someone could help me with my problem. Currently I am trying to compare 2 different tables and check for differences between the two. I wrote this DAX-Code:
Solved! Go to Solution.
Hi @hendrikw ,
Modify your formula like below:
result_ =
VAR Anzahl_Benchmark =
COUNTROWS ( 'Benchmark' )
VAR Anzahl_Ubereinstimmungen =
CALCULATE (
COUNTROWS ( 'Rainforest product' ),
INTERSECT (
DISTINCT ( 'Benchmark'[request_parameters.asin] ),
DISTINCT ( 'Rainforest product'[request_parameters.asin] )
),
INTERSECT (
DISTINCT ( 'Benchmark'[product.variant_asins_flat] ),
DISTINCT ( 'Rainforest product'[product.variant_asins_flat] )
)
)
RETURN
IF (
Anzahl_Benchmark = Anzahl_Ubereinstimmungen,
"Load Successful",
"Load Failed"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @hendrikw ,
Modify your formula like below:
result_ =
VAR Anzahl_Benchmark =
COUNTROWS ( 'Benchmark' )
VAR Anzahl_Ubereinstimmungen =
CALCULATE (
COUNTROWS ( 'Rainforest product' ),
INTERSECT (
DISTINCT ( 'Benchmark'[request_parameters.asin] ),
DISTINCT ( 'Rainforest product'[request_parameters.asin] )
),
INTERSECT (
DISTINCT ( 'Benchmark'[product.variant_asins_flat] ),
DISTINCT ( 'Rainforest product'[product.variant_asins_flat] )
)
)
RETURN
IF (
Anzahl_Benchmark = Anzahl_Ubereinstimmungen,
"Load Successful",
"Load Failed"
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@hendrikw , Try using below method I have changed Distinct with Values to convert the table into sets
Column =
VAR Anzahl_Benchmark = COUNTROWS('Benchmark')
VAR Anzahl_Ubereinstimmungen = CALCULATE(
COUNTROWS('Rainforest product'),
INTERSECT(
VALUES('Benchmark'[request_parameters.asin]), VALUES('Benchmark'[product.variant_asins_flat]),
VALUES('Rainforest product'[request_parameters.asin]), VALUES('Rainforest product'[product.variant_asins_flat])
)
)
RETURN
IF(Anzahl_Benchmark = Anzahl_Ubereinstimmungen, "Load Successful", "Load Failed")
Please give kudos and accept as solution if it helps
Proud to be a Super User! |
|
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
12 | |
11 | |
8 | |
6 |