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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Need help making this SQL expression in DAX

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;

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

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:

000.PNG

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))

0001.PNG

 

Community Support Team _ Dina Ye
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

1 REPLY 1
v-diye-msft
Community Support
Community Support

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:

000.PNG

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))

0001.PNG

 

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

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.