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

Sum value based on date slicer

I have a table with a date and a turnover column. I have made a date slicer. How can I get the sum of the turnover based on the range I have selected on the date slicer in DAX

1 ACCEPTED SOLUTION

@Kanivan 

 

You may simply use SUM to add the measure.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Kanivan
Frequent Visitor

lets say i have the following table. if i select the slicer for example from 4 jan - 6 jan I want to get a measure of 2 + 4 + 3 = 9

 

dateturnover
1-Jan5
2-Jan4
3-Jan4
4-Jan2
5-Jan4
6-Jan3
7-Jan5
8-Jan3
9-Jan2
10-Jan2
11-Jan4
12-Jan3
13-Jan2
14-Jan2
15-Jan1

HI,

Drop a slicer (slider on) and then drop a card or table depending on how you want to see the visuals:

20191022_BI_Kanivan.JPG

See attached PBIX if needed:

PBIX 

Hope it helps, happy BI

 

Kanivan
Frequent Visitor

thanks, but I want to know how to do this in DAX, its more for me to understand conceptually so I can use it for more complex structures.

@Kanivan 

 

You may simply use SUM to add the measure.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
YJ
Resolver II
Resolver II

Hi,

Attached your pbix file and also give an example of what you try to archieve, it would be easier.

regards

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.