Forum Discussion

AZJohnPowerBI's avatar
2 years ago

Calculated Table and Measures

Problem: The Values for the Total bar isn't showing.

Scenario: I tried making a calculated table with a total bar using dates.

Date_withTotal bar = Union(Distinct('DIM Date'[Month Year]),{"Total"}

but when I added an index using DAX, it was a circular reference.

 

So I made a table upstream in the data source, in Excel. 

 

So I made the following measures:
(I work in a call center, so these are in reference to calls be taken)
Service Rate with Total Bar Measure:

Total_ServiceLevelRate =
SWITCH(TRUE(),
    SELECTEDVALUE('DIM_Datetotalbar'[DateYR]) = "Total"
    , CALCULATE(Average('Fact Cisco'[Service Level]), ALL('DIM_Datetotalbar'[DateYR]))
    , Average('Fact Cisco'[Service Level]))

Abandonment Rate with Total Bar Measure:
Total_ABRate_Date =
SWITCH(TRUE(),
    SELECTEDVALUE('DIM_Datetotalbar'[DateYR]) = "Total"
    , CALCULATE(Average('Fact Cisco'[Abandonment Rate]), ALL('DIM_Datetotalbar'[DateYR]))
    , Average('Fact Cisco'[Abandonment Rate]))


Problem: The values for the Total Bar isn't showing.

1 Reply