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
Girish_123
Helper I
Helper I

how to calculate how many number of row and ftd and mtd for given sales

Suppose

dates                                         Sales

2018 / 10 /  29                            20

2018 / 11 / 30                           20

2018 / 11 / 30                          30

2018 / 11 / 30                          40

2018 / 11 / 30                          50

2018 / 12 / 30                          60

2018 / 12/ 30                          30

2018 / 12 / 30                         20

2018 / 12 / 30                         40

2018 / 12 / 31                          60

2018 / 12/ 31                          30

2018 / 12 / 31                         20

2018 / 12 / 31                         40

with the help of below measure we can easily get mtd but i need a number of row its get for calculating mtd like given below

MTD_SALE = CALCULATE(SUM('Table'[Sales]),DATESMTD('Table'[Date]))

 

need a solution like        FTD   150            MTD     300

                                                 4                              8

1 REPLY 1
lbendlin
Super User
Super User

Replace SUM() with COUNTROWS()

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
Top Kudoed Authors