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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors