The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 🙂
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |