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
Anonymous
Not applicable

Comparing volume for selected (slicer) fiscal week to prior week

Hi everyone - 

 

I am trying to create a visual (looking for recommendations) as to which visual to use to compare the selected week's stats (i.e. volume, handle time etc) to the prior week's stats.  I believe the KPI visual will be best, but am definitely open for recommendations, where it has a % change feature as well.  

 

While the visual recommendation is one thing, the most difficult part and the main ask here is how about doing it.  In the Power BI report, it's designed so that the user can use a slicer to select a particular FISCAL week (it could be the current week or any other week), and it'll show all the metrics that is needed.  

 

I went down the path of thinking of a KPI visual where I can use this fiscal week's metric as the value and the target as the previous week's.  However, I'm struggling with getting the select fiscal week's PRIOR week's together.  

 

I have two tables

1) Date Table - fields like Fiscal YPW (such as 20190103 - P representing period), dates, and I've gone as far as creating a new field callsed Fiscal YPW LW (to just have it there so I don't have to create any other DAX functions).  

2) Phones Table - which includes all metrics related our inbound phones.  

FIscal New.PNG

Phones.PNG

 

The relationship between the two tables is based on date.

 

I've gone down the path of playing with slicer / visual interactions and turning them on/off, as well as 

  • AA_Phone Volume LW = SUMX(FILTER('PHONES',RELATED('FISCAL NEW'[Fiscal YPW LW])=20190102),'PHONES'[Offered Emails]) - too test
  • AA_Phone Volume LW = SUMX(FILTER('PHONES',RELATED('FISCAL NEW'[Fiscal YPW LW])=
    SELECTEDVALUE('FISCAL NEW'[Fiscal YPW LW])),'PHONES'[Offered Emails])
     

I'm pretty sure I'm now going in circles and it's getting nowhere.  Any help will be appreciated from this forum - it's been extremely helpful this far.  Thank you in advance.

 

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Anonymous ,

 

I've gone down the path of playing with slicer / visual interactions and turning them on/off, as well as 

  • AA_Phone Volume LW = SUMX(FILTER('PHONES',RELATED('FISCAL NEW'[Fiscal YPW LW])=20190102),'PHONES'[Offered Emails]) - too test
  • AA_Phone Volume LW = SUMX(FILTER('PHONES',RELATED('FISCAL NEW'[Fiscal YPW LW])=
    SELECTEDVALUE('FISCAL NEW'[Fiscal YPW LW])),'PHONES'[Offered Emails])
     

I'm pretty sure I'm now going in circles and it's getting nowhere.  Any help will be appreciated from this forum - it's been extremely helpful this far.  Thank you in advance.


What does measure "AA_Phone Volumn LW" achieve? In addtion, Could you show the "Comparasion" logic and give the expected result?

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

 

Hi, @v-yuta-msft - thanks for looking at this!!! 

 

This is what I'm looking to achieve: 

Capture222.PNG

 

I want to have a card or a KPI card for each of the metric being reported.  I want to report on THIS week's metric and then also show last week's metric with a % difference.  I probably shouldn't have pasted the DAX in there as it really confuses things - sorry.  

 

This is what I have in the report view already (both table and graph): 

 YearPeriodWeekVolumeAvg Handle Time (sec)Avg Answer Time (sec)
201801012018114129518539
201801022018124035219232
201801032018133645216833
201801042018146548516434
201802012018214155514435

 

These are the two tables: 

Metrics Table
DateVolumeHandle Time (sec)Answer Time (sec)
25-Feb-195468956900191380
26-Feb-196562820200164040
27-Feb-1967261715038343008
28-Feb-1953541365270273054
1-Mar-195546854084170817
2-Mar-195786948904189781
3-Mar-195854977618195524
4-Mar-1958851159345231869
5-Mar-195468973304194661
6-Mar-1956991054315210863
7-Mar-1967581351600270320
8-Mar-1957851272700254540
9-Mar-1952131099943219989
10-Mar-195544831600166320
11-Mar-195956917224183445
12-Mar-194587756855151371
13-Mar-195458731372146274
14-Mar-1954561391280278256
15-Mar-195745942180188436
16-Mar-194385587590117518
17-Mar-194865802725160545

 

Date Table
DateFiscal YPW
25-Feb-1920180101
26-Feb-1920180101
27-Feb-1920180101
28-Feb-1920180101
1-Mar-1920180101
2-Mar-1920180101
3-Mar-1920180101
4-Mar-1920180102
5-Mar-1920180102
6-Mar-1920180102
7-Mar-1920180102
8-Mar-1920180102
9-Mar-1920180102
10-Mar-1920180102
11-Mar-1920180103
12-Mar-1920180103
13-Mar-1920180103
14-Mar-1920180103
15-Mar-1920180103
16-Mar-1920180103
17-Mar-1920180103

 

I've stripped a lot of the other data points from my actual tables to hopefully illustrate what I'm looking to do more accurately.  

 

Hope this makes more sense now!

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.