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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Slicer value correctly shows in a card visual but not returning the TopN in a summarized table -why?

Hi,

I have created a summarized table to count the number of rows based by multiple group bys. The table formula is:
tblPacketsWithMostCandidates = SUMMARIZE(
refSCRIPT_VALIDATION,
refSCRIPT_VALIDATION[packet_id],
refSCRIPT_VALIDATION[syllabus],
refSCRIPT_VALIDATION[session_id],
refSCRIPT_VALIDATION[component],
"CountOfCandidates", COUNT( refSCRIPT_VALIDATION[candidate_number] )
)

 

Bringing those fields into a table visual shows (i've manually sorted it based on the CountOfCandidates):

summarizedtable.JPG

 

I would like to give the user an option to pick the TopN records to view. So I created (tblNumberToView[Number]):
tblNumberToView.JPG

The value selected (5) above should be saved in a measue as follows:

mNumberToView = IF( HASONEVALUE( tblNumberToView[Number] ), VALUES( tblNumberToView[Number] ), 3 )

 

A card visual correctly shows the selected value (5):
card.JPG

 

I then create another summarized table to select, based on the selected TopN, the top records from the first summarized table (shown in step 1 above):
tblTopNPacketsWithMostCandidates = TOPN(
tblNumberToView[mNumberToView]
, tblPacketsWithMostCandidates
, tblPacketsWithMostCandidates[CountOfCandidates]
)

 

 

The result is:

result.JPG

 

You will notice only the Top 3 results are returned. Although the slicer value selected, and as shown in the card visual, was 5. For some reason the table is only showing the top 3, which is the default value I asked it to return in the measure to hold the slicer value.

 

Why is the table not returning the top CountOfCandidates based on the measure's value (5)?

 

Please help. Thanks in advance.

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

A calculated table is an immutable result. You may add a measure to Visual level filters.

 

Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@Anonymous,

 

A calculated table is an immutable result. You may add a measure to Visual level filters.

 

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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