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.
I need to make the equivalent of this SQL expression in DAX. Any help or tips would be welcome.
SELECT a.transaction_id, a.dt_chargeback, a.valor, b.periodo_id
FROM `chargebacks` a
INNER JOIN calendario b
ON a.dt_chargeback = b.data_cb;
Solved! Go to Solution.
Hi @Anonymous
Your question is too scarce to provide the solution. I'd like to suggest you refer to this portal for detailed reference:
https://www.sqlbi.com/articles/from-sql-to-dax-projection/
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
I created a sample as below:
1. Manage the relationship between them with the column [dt_chargeback] and [data_cb]:
2. Add the dax formula to create the calculated table:
Table = CALCULATETABLE(NATURALINNERJOIN(chargebacks,calendario))
Hi @Anonymous
Your question is too scarce to provide the solution. I'd like to suggest you refer to this portal for detailed reference:
https://www.sqlbi.com/articles/from-sql-to-dax-projection/
https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/
I created a sample as below:
1. Manage the relationship between them with the column [dt_chargeback] and [data_cb]:
2. Add the dax formula to create the calculated table:
Table = CALCULATETABLE(NATURALINNERJOIN(chargebacks,calendario))
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |