Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
Im trying to calculate the repurchase% of my clients. For that i created one new column at my client table that shows me the date of the first order of my client.
First Buy = FIRSTDATE('Vendas com Produtos'[DATA_EMISSAO_NF])
After that I need to create anothe column at my client table that shows me the date of the second order.
Second Buy = ??????
I tried to filter this firstdate formula, but it did not work.
My sales table have the clientID and the sales date.
I need help on this.
Solved! Go to Solution.
Try this
Second Buy = VAR FirstBuy = [First Buy] RETURN CALCULATE ( MIN ( 'Vendas com Produtos'[DATA_EMISSAO_NF] ), 'Vendas com Produtos'[DATA_EMISSAO_NF] > FirstBuy )
Try this
Second Buy = VAR FirstBuy = [First Buy] RETURN CALCULATE ( MIN ( 'Vendas com Produtos'[DATA_EMISSAO_NF] ), 'Vendas com Produtos'[DATA_EMISSAO_NF] > FirstBuy )
I got this error when tried this formulad.
"The expression contains many columns, but it can only be uses one columns in one expression True/False..."
Sorry, My mistake. It worked just fine. Thanks
Because you didn't use the variable as the last expression inside Filter
Just replace
Clientes[Preimeria Compra]
with
Firstbuy
Also the variable is supposed to hold the FIRSTBUY measure
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
62 | |
59 | |
56 |