Calculation groups in SSAS Tabular model not working

Mudassar A 486 Reputation points
2021-02-10T04:09:23.957+00:00

I m following the below article to create MTD, QTD and YTD (Time intelligence) calculation group in SSAS Tabular model in VS and then deploying it to Azure AS.

calculation group :

CALCULATE(SELECTEDMEASURE(), DATESMTD(DimDate[Date]))

CALCULATE(SELECTEDMEASURE(), DATESQTD(DimDate[Date]))

CALCULATE(SELECTEDMEASURE(), DATESYTD(DimDate[Date]))

https://devblogs.microsoft.com/premier-developer/dax-calculation-groups-for-time-intelligence/

The problem I m facing is that my visuals are not filtering .

My visuals on PowerBI Client dont load when I click on YTD or QTD or MTD slicer

I have star schema with 10 Dimensions and 1 fact sales table and a DimDate Table which has the the date and the datekey.

All my measures are in the fact table and have created around calculated 20 measures on top of it which are under measures folder but they don't sit under calculation groups .
66090-image.png

Do I need to associate my calculated measures with the calculation group to ensure the slicers work?

66181-image.png

66135-image.png

DimDate table data

66641-image.png

Visual studio version
66625-image.png

Powerbi Version
66624-image.png

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
451 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,282 questions
{count} votes

Accepted answer
  1. Cedric FK_finelog 206 Reputation points
    2021-02-10T21:48:05.107+00:00

    Hi,
    the result look strange. How is define your measure PVA ?

    Regarding relationship between your dimension date and your fact table. do you have a complete set of dates in your date table ?

    the result suggest that you don't have datas in PBI_FactAll matching with values returns by DATESMTD(PBI_DimDate[Date]).


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.