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

How to filter paginated report on distinctcounts from a powerbi dataset

Hi,

 

I have a paginated report that retrieves data from a Power BI dataset. I want to apply a filter to the data in the paginated report based on the "Count" column from my Power BI dataset. To achieve this, I have created a calculated table using the following DAX expression and have included a screenshot of the data:

 

CountTable = FILTER(SUMMARIZE('Fact', 'Fact'[ArticleID], "Count", DISTINCTCOUNT('Fact'[ItemID])), NOT(ISBLANK('Fact'[ArticleID])))

 

HannesB_1-1687181635103.png

The purpose of the CountTable is to count the number of products associated with each article.

 

When I use the count column as a filter in Power BI, I only see one unique value per count. For example, in the table, the number 2 will only appear once like this.

HannesB_2-1687182027771.png

 

In the paginated report, I retrieve the data using the following query within a dataset:

(It is here I think I need to change someting If not in the Powerbi Dataset. For SQL I would assume that it works with SELECT DISTINCT Count from Table.)

 

EVALUATE
SUMMARIZECOLUMNS (
'CountTable'[ArticleID],
'CountTable'[Count]
)
ORDER BY
"Count"

 

The filter in the paginated will then have a count for each article and not just one distinct 2 and one distinct 3 etc.

 

HannesB_3-1687182225047.png

 

Does anyone ave any suggestions on how I could handle this filter in the paginated report?

 

Thank's in advance.

0 REPLIES 0

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.