Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
74 | |
73 | |
56 | |
38 | |
31 |
User | Count |
---|---|
83 | |
64 | |
63 | |
49 | |
45 |