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
mikro87
Helper II
Helper II

Slicer that sums up revenue over selected time period

Hi,

 

I have a table like this one:

CountryDaterevenue
DE02.03.202010
ES04.05.201920
IT05.03.201930
DE07.06.201940
ES02.08.202050
IT11.07.201960
DE05.09.202070
ES14.08.201980
IT09.10.202090
DE17.09.2019100
ES12.11.2020110
IT21.10.2019120
DE16.12.2020130
ES11.02.2022140
IT19.01.2021150

 

and I want to have a slicer, that sums up the revenue while I also slice the date column. 

Meaning let's say I select 2019 the revenue slicer should go from 100 (fro ES) to 210 (for IT).

Is that possible?

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @mikro87 ,

 

Add the date to the slicer and show the year level. Then we can get it.

slicer.PNG

 

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
kentyler
Solution Sage
Solution Sage

 

Thanks for the sample data.

I copied it into a power bi file and then put it into a table.

I added a calculated column for the year of each row

Then I was able to use the year column to populate one slicer

Then I created a slicer on the revenue column

when you select a year in the year slicer, it changes the options in the revenue slicer, since both slicers are based on the same table.

Is this what you wanted ?

 

These days, i prefer Slow BI





Did this post answer your question? Mark it as a solution so others can find it!

Help when you know. Ask when you don't!




Join the conversation at We Talk BI find out more about me at Slow BI


amitchandak
Super User
Super User

@mikro87 , What do mean by slicer sum up value. You can use visuals, to sum up the values. And you use date from this table or create a date calendar

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/

az38
Community Champion
Community Champion

Hi @mikro87 

create a calculated column

SlicerColumn = calculate(
sum('Table'[revenue]),
ALLEXCEPT('Table','Table'[Country],'Table'[Date].[Year])
)

and then visuals

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi @az38, would this also work if I select a month?

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.