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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
rainchong7401
Helper III
Helper III

Not able to bring the column

Hi Friends,
I have a table (Custtransview), which it has a column call "RANKED".
But I'm trying to create a new table which the table I want it only contains 2 columns.

Expected output:
New table:
1. Accountnum column
2. Ranked column (I only want RANKED = 1, do not want 2 in the new column.)
How come my ranked column formula is wrong? Ive no idea now
HELP!

rainchong7401_0-1667206701048.png

rainchong7401_1-1667206715186.png

 

 

 

1 ACCEPTED SOLUTION
lukiz84
Memorable Member
Memorable Member

Hi,

 

it doesn't work because you have to add RANKED as a normal column and then use the filter.

 

In general it's better to use SUMMARIZECOLUMNS. 

 

 

SUMMARIZECOLUMNS(CUSTTRANSVIEW[ACCOUNTNUM], CUSTTRANSVIEW[RANKED], FILTER(CUSTTRANSVIEW, CUSTTRANSVIEW[RANKED] = 1))

 

 

(because with "RANKED" and then FILTER(...) you use the expression parameter which expects a single value, you return a whole table/column with FILTER instead, that doesn't work)

 

View solution in original post

2 REPLIES 2
v-yalanwu-msft
Community Support
Community Support

Hi, @rainchong7401 ;

You could Try it.

Newtable =
SUMMARIZE (
    FILTER ( CUSTTRANSVIEW, CUSTTRANSVIEW[RANKED] = 1 ),
    CUSTTRANSVIEW[ACCOUNTNUM],
    CUSTTRANSVIEW[RANKED]
)

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

lukiz84
Memorable Member
Memorable Member

Hi,

 

it doesn't work because you have to add RANKED as a normal column and then use the filter.

 

In general it's better to use SUMMARIZECOLUMNS. 

 

 

SUMMARIZECOLUMNS(CUSTTRANSVIEW[ACCOUNTNUM], CUSTTRANSVIEW[RANKED], FILTER(CUSTTRANSVIEW, CUSTTRANSVIEW[RANKED] = 1))

 

 

(because with "RANKED" and then FILTER(...) you use the expression parameter which expects a single value, you return a whole table/column with FILTER instead, that doesn't work)

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors