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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.