Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi. Im trying to create a SUM measure
Calls Offered:=sum(CallsApplicationStats[CallsOffered])
now there is a [Time] field in CallsApplicationStats [cas]
and I wanrt to filter this measure where the [TIME] is greater than or equal to and less than
i have done this in SQL Server in a WHERE Clause
You have to have two tables that you'll use on slicers or on rows and columns of a matrix. One will store all the ApplicationTimeOpen's and the other one ApplicationTimeClose's. Let's call them AppTimeOpen (with Time column) and AppTimeClose (with Time column as well).
Once you have them, then you can create a measure:
# Calls Offered = var __timeOpen = SELECTEDVALUE( AppTimeOpen[Time] ) var __timeClose = SELECTEDVALUE( AppTimeClose[Time] ) var __callsOffered = CALCULATE( [Calls Offered], -- your measure CallsApplicationStats[TIME] >= __timeOpen, CallsApplicationStats[TIME] < __timeClose ) return __callsOffered
When you do this, please do not use the [TIME] column in your report. Hide the column.
Best
Darek
Missed update
ca.ApplicationTimeOpen & ca.ApplicationTimeClose are in another table.
I have created a calculated column in CallsApplicationStats to bring these both in if that helps 🙂
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |