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

Filter one column count

Hello,

 

I have one question regarding filtering one column in PBI for having different results than another column. 

Here are the problem -> I have to measure how many documents are released during the week and the weekend. I have a table in which I evaluate the day of the week and in another column, I write "Weekend" or "Week" related to the value of the day number.

 

Now. In a table I put those value: 

robertosangi_0-1646899529735.png

The result is:

robertosangi_1-1646899554025.png

Actually I have the column ConsegnaWeekEnd as follow:

robertosangi_2-1646899615627.png

 

So, what I wanted is to filter the column PdL only per values of "Week" and the column PdLWE only per number of value of "Weekend"

Like filtering with a filter:

robertosangi_0-1646899789892.png

 

Column PdL = Distinct Count of Week

Column PdLWE = Distinct Count of Weekend


How can I do that?

Thank you

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

Hi @robertosangi ,
Create new measures for PDL and PDLWE.
For PDL use this :
PDL= calculate(distinctcount(Columnname), filter(tablename, ConsegnaWeekEnd ="Week"))
For PDLWE use this:
PDLWE= calculate(distinctcount(Columnname), filter(tablename, ConsegnaWeekEnd ="Weekend"))

If this helps you then please mark it as a solution. Thanks.

Regards,

TruptiS

View solution in original post

1 REPLY 1
truptis
Community Champion
Community Champion

Hi @robertosangi ,
Create new measures for PDL and PDLWE.
For PDL use this :
PDL= calculate(distinctcount(Columnname), filter(tablename, ConsegnaWeekEnd ="Week"))
For PDLWE use this:
PDLWE= calculate(distinctcount(Columnname), filter(tablename, ConsegnaWeekEnd ="Weekend"))

If this helps you then please mark it as a solution. Thanks.

Regards,

TruptiS

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.

Top Solution Authors
Top Kudoed Authors