Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
i need some help. Here is my situation. In column "Customer No_" there are some empty cells some cells with numbers. I have a common column "Vidinio dok.nr.". Need that, if in column "Vidinio dok.nr." are the same value, all blank customer no cells will be filled with numbers, like in example P0812. Any thoughts? thank you.
Solved! Go to Solution.
Hi @AntanasK,
According to your description, you should be able to create a calculate column using DAX for the "Customer No_" column in this scenario. See my sample below.
I assume you have a table called "Table1" like below.
Then you should be able to use the formula below to create the calculate column for the "Customer No_".
New Customer No_ = VAR vidInio = Table1[Vidinio dok.nr.] RETURN CALCULATE ( FIRSTNONBLANK ( Table1[Customer No_], 1 ), FILTER ( ALL ( Table1 ), Table1[Vidinio dok.nr.] = vidInio && Table1[Customer No_] <> BLANK () && Table1[Customer No_] <> "" ) )
Here is the sample pbix file for your reference.
Regards
Filled with what numbers? Random numbers? Constant numbers or something from the data?
Sorry. Filled with numbers from data. In column "Vidinio dok.nr." i have invoice numbers, also i have account numbers (G_L Account No_) and Customer No_. Account numbers with the beginning 5 are incomes, others with 6 are costs. As i filter one invoice i.e. SFI100003 only incomes have customer numbers. I need that not only incomes but also costs will have the same cust no. And the same situation are with all invoices in my data. Hope that explained exactly.
Thank you.
Antanas
Hi @AntanasK,
According to your description, you should be able to create a calculate column using DAX for the "Customer No_" column in this scenario. See my sample below.
I assume you have a table called "Table1" like below.
Then you should be able to use the formula below to create the calculate column for the "Customer No_".
New Customer No_ = VAR vidInio = Table1[Vidinio dok.nr.] RETURN CALCULATE ( FIRSTNONBLANK ( Table1[Customer No_], 1 ), FILTER ( ALL ( Table1 ), Table1[Vidinio dok.nr.] = vidInio && Table1[Customer No_] <> BLANK () && Table1[Customer No_] <> "" ) )
Here is the sample pbix file for your reference.
Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
97 | |
84 | |
67 | |
59 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |