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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
emf_efab
Frequent Visitor

Count First Value in Column - for a day

I need to count the Values "Estado" (Bold & Blue) in the Column for each day, not Repeating the same ESTADO, reaching a final result of 10, over the 13 rows.

 

Example: 

1Feb = 1 

2Feb = 1

26Feb = 1

 

 

IDFechaEstadoEmail
101-FebOrder Entryemail1
201-FebOrder Entryemail2
302-FebOrder Entryemail3
420-FebPendiente de Codigoemail4
526-FebPendiente de Codigoemail5
626-FebPendiente de Codigoemail6
703-MarPendiente de Codigoemail7
803-MarOrder Entryemail8
903-MarPendiente de Revisionemail9
1003-MarAprobadoemail10
1103-MarAprobadoemail11
1211-MarPendiente de Revisionemail12
1311-MarAprobadoemail13
    

 

2 ACCEPTED SOLUTIONS
PhilipTreacy
Super User
Super User

Hi @emf_efab 

 

Download PBIX

 

You can do this with this measure

Count Estado = COUNTROWS(DISTINCT(SELECTCOLUMNS('Control Emails', "NewCol", 'Control Emails'[Fecha]&'Control Emails'[Estado])))

countestado.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

Thank you very much Phil, regards Steve

View solution in original post

8 REPLIES 8
PhilipTreacy
Super User
Super User

Hi @emf_efab 

 

Download PBIX

 

You can do this with this measure

Count Estado = COUNTROWS(DISTINCT(SELECTCOLUMNS('Control Emails', "NewCol", 'Control Emails'[Fecha]&'Control Emails'[Estado])))

countestado.png

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Thank you very much Phil, regards Steve

PhilipTreacy
Super User
Super User

HI @emf_efab 

Not following the logic for what to count.

You've highlighted the first Estado for 1-Feb, 2-Feb, 20-Feb and 26-Feb but then you've highlighted multiple things for 3-Mar and 11-Mar.

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Phil,

Thanks for helping...I need to count the "Estado" no matter what the estado is for a day, but NOT REPEATING the same "estado" for a same day.

I need to keep control of all the single ESTADOS in the complete rows.

So in the example you have 13 rows but the ocurrences are 10 without repeating the ESTADO.

Whope you understand me this time.

Hi @emf_efab 

Right, I understand now.

How do you want this count presented?  As a single number as the result of a measure?

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


As a "number", in the example I should arrive to 10. It should be a Measure, that shows me the total "Ocurrences" for an Order for example. Do you need the Excel file, and the PBIX ??, not to lose time creating it.

 

Hi @emf_efab 

Yes the file/PBIX would help.

Thanks

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


How do I send it to you, or where do I attach it. Sorry it's my first time here, in 5 years. Never used this space.

 

This is a Shared Drive:

https://drive.google.com/drive/folders/12VY2dKytqM92pVemdY_Bpk00ph_jI1um?usp=sharing

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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