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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RichOB
Post Partisan
Post Partisan

Need help changing my measure

Hi, the measures below gives me the total Count for Canada between 01/04/2024 - 30/05/2024 as 3. If I want the combined Total amount instead of the Count, how can this measure be amended so it shows the Total as 95 on a card please?

 

Canada_Count =
CALCULATE(
COUNT('Sheet1'[Customer_ID]),
'Sheet1'[Country] = "Canada",
'Sheet1'[Date] >= DATE(2024, 4, 1),
'Sheet1'[Date] <= DATE(2024, 4, 30)
)

Customer_IDCountryDateTotal
1Canada01/04/202420
2Canada02/04/202435
3Canada04/05/202440
4USA01/04/202435
5USA08/05/202425
6UK03/04/202430
7UK05/05/202440
8UK01/06/202455
9UK06/06/202465
10UK10/06/202435

 

Thanks!

1 ACCEPTED SOLUTION
dharmendars007
Super User
Super User

Hello @RichOB , 

 

Please use the below measure This measure will now show 95 (the sum of 20, 35, and 40) when used in a card visual for the given date range.

 

Canada_Total =
CALCULATE(
SUM('Sheet1'[Total]),
'Sheet1'[Country] = "Canada",
'Sheet1'[Date] >= DATE(2024, 4, 1),
'Sheet1'[Date] <= DATE(2024, 5, 30))

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

View solution in original post

2 REPLIES 2
Kedar_Pande
Super User
Super User

@RichOB 

DAX Measure:

Canada_Total =
CALCULATE (
SUM ( 'Sheet1'[Total] ),
'Sheet1'[Country] = "Canada",
'Sheet1'[Date] >= DATE ( 2024, 4, 1 ),
'Sheet1'[Date] <= DATE ( 2024, 4, 30 )
)

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

dharmendars007
Super User
Super User

Hello @RichOB , 

 

Please use the below measure This measure will now show 95 (the sum of 20, 35, and 40) when used in a card visual for the given date range.

 

Canada_Total =
CALCULATE(
SUM('Sheet1'[Total]),
'Sheet1'[Country] = "Canada",
'Sheet1'[Date] >= DATE(2024, 4, 1),
'Sheet1'[Date] <= DATE(2024, 5, 30))

 

If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes 👍 are much appreciated!

 

Thank You

Dharmendar S

LinkedIN 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.