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
AresB
Frequent Visitor

current quarter and previous quarter on kpi card

Hi,

 

im trying to achieve to visualize the current quarter and the previous quarter on a kpi card regarding on the filter i use in the dashboard.

im using this calculation for previous quarter:

PreviousQuarterSales = CALCULATE(SUM(Foglio1[Sales]),DATESQTD(dateadd(Foglio1[Date].[Date],-1,QUARTER)))

 and this work correctly with the filter.

Im looking for something like:

Last QTDes = CALCULATE(SUM(Foglio1[Sales]),PREVIOUSQUARTER(TODAY()))

 

is there a way to achieve this ?

1 ACCEPTED SOLUTION
WinterMist
Impactful Individual
Impactful Individual

@AresB 

 

Please try the following 2 measures for the KPI cards.

 

WinterMist_0-1679593865157.png

 

 

WinterMist_1-1679593903660.png

 

WinterMist_2-1679593982301.png

 

Hope this is helpful to you.

 

Regards,

Nathan

 

P.S.  I created my own date table in DAX as follows.  The main field used is "Year Quarter Number", highlighted below.  This table was joined to the 'Sales' table on 'Sales'[Order Date].

 

WinterMist_3-1679594120361.png

 

View solution in original post

1 REPLY 1
WinterMist
Impactful Individual
Impactful Individual

@AresB 

 

Please try the following 2 measures for the KPI cards.

 

WinterMist_0-1679593865157.png

 

 

WinterMist_1-1679593903660.png

 

WinterMist_2-1679593982301.png

 

Hope this is helpful to you.

 

Regards,

Nathan

 

P.S.  I created my own date table in DAX as follows.  The main field used is "Year Quarter Number", highlighted below.  This table was joined to the 'Sales' table on 'Sales'[Order Date].

 

WinterMist_3-1679594120361.png

 

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.

Top Solution Authors