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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.