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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.