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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
leudyston
Helper I
Helper I

Converting DAX to M

Hello friends

Create a calculated column without BI power, but for performance issues you are not able to configure this column without power query using M.

 

Column = IF(
                     CALCULATE(
                                           COUNTX(
                                                            FILTER(VinculoAtivo
                                                                          ;VinculoAtivo[codcontatopf] = 
                                  MAX(TDClientePessoaFisica[CodClientePessoaFisica]))
                                                            ;VinculoAtivo[codcontatopf])
                                           )>0
                    ;1
                    ;0)

 

Best regards

Leudyston

2 REPLIES 2
Interkoubess
Solution Sage
Solution Sage

hi @leudyston,

 

What do you want to do exactly ?

 

With little sample data and expected results I can try to help.

 

Ninter.

Hi @Interkoubess, I have a client dimension (TDClientePessoaFisica), and a table that I bring from another data source, where this table (VinculoAtivo) is bringing which clients are with active link, these two tables are related by the code of the client. In the column calculated in DAX, I am filtering all clients of the client dimension that have active link and determining 1 for them and 0 for those that do not have active lin

 

I want to do the same thing I did in DAX, now in M ​​to be able to create this column in Power QUERY.

 


Can you understand me?

 

Best Regards

Leudyston

Helpful resources

Announcements
ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.