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
Yau0101
Frequent Visitor

Count the no if ID

Dear All,

 

How can I count the no of ID in the ID column as shown in the picture below? The total no of ID should be 48. Basically the id is the quotation id, i want to know the number of quotes issued in month of september.  Please advise. thanks

 

Yau0101_0-1634266763498.png

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Yau0101 ,  a Measure

 

Calculate(count(Table[ID]), Filter(Table, eomonth(Table[created_date],0) = eomonth(today(),-1) )) 

 

Or you can use time intelligence with date table

last MTD Sales = CALCULATE(count(Table[ID]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(count(Table[ID]),previousmonth('Date'[Date]))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Yau0101 ,  a Measure

 

Calculate(count(Table[ID]), Filter(Table, eomonth(Table[created_date],0) = eomonth(today(),-1) )) 

 

Or you can use time intelligence with date table

last MTD Sales = CALCULATE(count(Table[ID]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))
last month Sales = CALCULATE(count(Table[ID]),previousmonth('Date'[Date]))

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.

Top Solution Authors