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
Help,
I am trying to display Contact Center data on a visual, preferably a bar graph of clustered bar graph. The fields contain DateTime and CallsHandled. What I would like to display is the data for Today's Date and times (interval) and then the historical data from the previous 3 days with the same DOW. For example, display Today's datetimes of 10/13/2020 07:00:00 AM... 10/13/2020 06:00:00 PM, 10/6/2020 07:00:00 AM... 10/6/2020 06:00:00 PM, 09/29/2020 07:00:00 AM... 09/29/2020 06:00:00 PM and 09/22/2020 07:00:00 AM... 09/22/2020 06:00:00 PM.
The data is in one table and contains 6 months of historical data.
Any help with this would be greatly appreciated.
Mark
Solved! Go to Solution.
TTL_Display =
VAR _CurrenctDate =
TODAY ()
VAR _CurrenctWeekDay =
WEEKDAY ( _CurrenctDate )
VAR DaysSelected =
TOPN (
3,
FILTER (
ALL ( ContactData[Date] ),
WEEKDAY ( ContactData[Date] ) = _CurrenctWeekDay
&& ContactData[Date] <= _CurrenctDate
),
ContactData[Date]
)
RETURN
CALCULATE ( [TTL], KEEPFILTERS ( ContactData[Date] IN DaysSelected ) )hope this can help you!!
TTL_Display =
VAR _CurrenctDate =
TODAY ()
VAR _CurrenctWeekDay =
WEEKDAY ( _CurrenctDate )
VAR DaysSelected =
TOPN (
3,
FILTER (
ALL ( ContactData[Date] ),
WEEKDAY ( ContactData[Date] ) = _CurrenctWeekDay
&& ContactData[Date] <= _CurrenctDate
),
ContactData[Date]
)
RETURN
CALCULATE ( [TTL], KEEPFILTERS ( ContactData[Date] IN DaysSelected ) )hope this can help you!!
Thanks for your response...
I am taking a look at the measure you sent and have a newbe question. What is TTL in the calculate?
I set it up to use my data and ran into this question.
Thanks... Mark
the code of TTL measure is =SUM(ContactData[CallsHandled])
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.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |