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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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