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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Marcel_Graumans
Regular Visitor

3 collumn with values where only 1 column has values, add a column with 1 value

I have 3 columns where only 1 column is filled, I want to see this value in an added column in a dax formula
2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Marcel_Graumans ,

 

Try expression below:

Measure = IF(MAX('Table'[Begroting])=BLANK()&&MAX('Table'[Meerwerk])=BLANK(),MAX('Table'[Budget]),MAX('Table'[Begroting])+MAX('Table'[Meerwerk]))

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

i fix it works now

View solution in original post

8 REPLIES 8
Marcel_Graumans
Regular Visitor

Is there also a solution between measurements, this solution is for colums
Anonymous
Not applicable

Hi @Marcel_Graumans ,

 

I made simple samples and you can check the results below:

vtianyichmsft_0-1713341279199.png

Column = 
VAR _VIRTUAL = ADDCOLUMNS('Table (2)',"C1_1",IF('Table (2)'[C1] = BLANK(),0,1),"C2_1",IF('Table (2)'[C2] = BLANK(),0,1),"C3_1",IF('Table (2)'[C3] = BLANK(),0,1))
VAR _INDEX = 'Table (2)'[Index]
RETURN
SUMX(FILTER(_VIRTUAL,[Index] =_INDEX && [C1_1]+ [C2_1] + [C3_1] = 1),[C1]+[C2]+[C3])

 

An attachment for your reference. Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

thats not what i mean i have a import and now i want to adit a column 

if begroting and meerwerk is filled then adit in column new if not then budget in new column

BudgetBegrotingMeerwerkNew
€ 260.000,00  € 260.000,00
€ 260.000,00  € 260.000,00
€ 260.000,00  € 260.000,00
€ 6.500,00€ 6.253,32 € 6.253,32
€ 16.500,00€ 7.797,14 € 7.797,14
€ 6.500,00€ 6.253,32 € 6.253,32
€ 7.500,00€ 7.302,52 € 7.302,52
€ 3.500,00€ 5.838,58 € 5.838,58
€ 1.760,00€ 1.461,93 € 1.461,93
€ 5.000,00€ 6.682,68 € 6.682,68
€ 7.500,00€ 8.840,81 € 8.840,81
€ 2.000,00€ 2.648,40 € 2.648,40
€ 0,10€ 0,00 € 0,00
€ 7.500,00€ 5.451,49 € 5.451,49
€ 1.700,00€ 1.696,50 € 1.696,50
€ 3.500,00€ 3.489,51883,74€ 4.373,25
€ 4.500,00  € 4.500,00
€ 2.500,00  € 2.500,00
€ 0,10  € 0,10
€ 2.500,00  € 2.500,00
€ 2.500,00  € 2.500,00
€ 3.500,00  € 3.500,00
€ 3.500,00  € 3.500,00
Anonymous
Not applicable

Hi @Marcel_Graumans ,

 

You can refer to the following results:

vtianyichmsft_0-1713403100765.png

Measure = IF(MAX('Table'[Begroting])=BLANK(),MAX('Table'[Budget]),MAX('Table'[Begroting]))

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

it doesn't work i have 1 column extra called meerwerk total 3 colums
Anonymous
Not applicable

Hi @Marcel_Graumans ,

 

Try expression below:

Measure = IF(MAX('Table'[Begroting])=BLANK()&&MAX('Table'[Meerwerk])=BLANK(),MAX('Table'[Budget]),MAX('Table'[Begroting])+MAX('Table'[Meerwerk]))

 

Hope it helps!

 

Best regards,
Community Support Team_ Scott Chang

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Marcel_Graumans_0-1713428885076.png

nope i get this result sorry its in dutch

i fix it works now

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.