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

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.

Reply
yodha
Helper IV
Helper IV

DAX help

i am trying to create a calculated column, 

 
Column =
IF (
'Table 1'[Group] && 'Table 1'[Type]
&& 'Table 1'[Sub-type],
'Table 1'[Value],
CALCULATE (
SUM ( 'Table 2'[Value] ),
FILTER (
'Table 2',
'Table 2'[Name] = 'Table 1'[Name]
&& 'Table 2'[Type] = "new"
)
)
calculated column is returning correct values when the above condition matches , and in places where the condition doesnot match it should return "Table1[value]" coulmn values, and my "Table1[value]" column has few "0"s. But "Blank" values are coming in place of "0"s in calculated column.
 
Help me how to change the DAX accordingly? thanks in advance.
1 ACCEPTED SOLUTION

@dax : Issue got resloved! Thank you

View solution in original post

3 REPLIES 3
dax
Community Support
Community Support

Hi @yodha ,

I am not clear about your requirement, if possible could you please inform me more detailed information(such as your expected output and your sample data )? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

@dax : Issue got resloved! Thank you

amitchandak
Super User
Super User

@yodha , you are using just a column name without condition. Can you share sample data and sample output in table format?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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