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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Diego_Vialle
Helper II
Helper II

DAX - Add column referring to a measure.

Hello, I need to add the values that are marked in the column to the side. The column "New Bimonthly Customers" derives from a measure created:

 

Diego_Vialle_0-1650068896561.png

 

Diego_Vialle_1-1650068988653.png

 

Novos Clientes Bimestrais =
VAR AllOldCustomers =
CALCULATETABLE (
VALUES ( SBOPRODMS[Nome do PN] ),
SBOPRODMS,
SBOPRODMS[Data NF]
< TODAY () - 60,
SBOPRODMS[Documento] = "Nota fiscal de saída"
)
VAR AllNewCustomers =
CALCULATETABLE (
VALUES ( SBOPRODMS[Nome do PN] ),
SBOPRODMS[Data NF]
< TODAY () ,
SBOPRODMS[Documento] = "Nota fiscal de saída"
)
RETURN
COUNTROWS ( EXCEPT ( AllNewCustomers, AllOldCustomers ) )
1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi Diego 

Not sure if I fully understand but you may try this

Valor Clientes Bimestrais =
SUMX (
    VALUES ( SBOPRODMS[Nome do PN] ),
    IF ( [Novos Clientes Bimestrais] = 1, [Valor NET | NF] )
)

 

View solution in original post

4 REPLIES 4
tamerj1
Super User
Super User

Hi Diego 

Not sure if I fully understand but you may try this

Valor Clientes Bimestrais =
SUMX (
    VALUES ( SBOPRODMS[Nome do PN] ),
    IF ( [Novos Clientes Bimestrais] = 1, [Valor NET | NF] )
)

 

Perfect. Is correct !! I will use the same for New Semiannual Customers.

I was wrong when using the Bimonthly New Customers measure within SUMX. It was giving placeholder error.

I have another question, but I'll open it in another message here on the forum. Thank you one more time.

 

Diego_Vialle_0-1650107428310.png

 

Diego_Vialle_1-1650107476609.png

 

tamerj1
Super User
Super User

Hi @Diego_Vialle 

what do you mean by "add to the side"?

Add up according to the clients that are marked as bimonthly. Sorry, I use google translate

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.