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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.