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
JAVED
Helper I
Helper I

Display multiple columns value with reference to 2 columns

Hi! I have a columnA and columnB with different numbers like 1,2,3,4,5 and 6,7,8,9,10. i have other coumns like R,4,W,D Now i have to display other columns like "If(a=1 and b=4 then sum(R),count(B),Count(W),Count(D))" i am no able t do in pwer bi exactly can uplease help me with this. 

Column AColumn BColumn RColumn 4Column WColumn D
231010
153110
424111
515100
236011
342001
533111
311100
422011
113101
135010
126101
1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @JAVED,

 

You can create a calculated column below: 

 

Column = IF('Table1'[Column A]=1 && 'Table1'[Column B]=4,SUM('Table1'[Column R])&","&COUNT(Table1[Column B])&","&COUNT('Table1'[Column W])&","&COUNT('Table1'[Column D]))

 

w3.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @JAVED,

 

You can create a calculated column below: 

 

Column = IF('Table1'[Column A]=1 && 'Table1'[Column B]=4,SUM('Table1'[Column R])&","&COUNT(Table1[Column B])&","&COUNT('Table1'[Column W])&","&COUNT('Table1'[Column D]))

 

w3.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This is not the exact output but i got it in a different way

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.