Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am new to PowerBI and slowly learning how to advance.
I have different financial data for various companies and periods. Based upon a series of slicers (company, dates, quarterly/annual data) this data is filtered. From this filtered data I want to identify the data at the chosen start and end dates. I've added some measures which determine the start and end dates selected by a slicer but don't know how to use this to find the data (revenue for example) on these dates.
For example, in the visual shown below the yellow box is reporting on the results of the slicers and I am trying to obtain the revenue on the starting data (2.5m based upon the slicers) and end date (3.5m based upon the slicers) and a comment on this.
Here is a link to the sample data I am using - Sampledata.pbix
Any help appreciated.
Solved! Go to Solution.
Hi, create these two measures (not columns):
FirstDateRevenue =
CALCULATE (
SUM ( 'Table'[Revenue] ),
'Table'[Date] = MIN ( 'Table'[Date] )
)
LastDateRevenue =
CALCULATE (
SUM ( 'Table'[Revenue] ),
'Table'[Date] = MAX( 'Table'[Date] )
)
Thank you, that worked perfectly!
Hi, create these two measures (not columns):
FirstDateRevenue =
CALCULATE (
SUM ( 'Table'[Revenue] ),
'Table'[Date] = MIN ( 'Table'[Date] )
)
LastDateRevenue =
CALCULATE (
SUM ( 'Table'[Revenue] ),
'Table'[Date] = MAX( 'Table'[Date] )
)
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.