Display current quarter data - DAX

Vander1981

New Member
Joined
Jun 20, 2017
Messages
18
Hey guys,

Does someone know how to dynamically display current quarter with possibility to filter for previous quarter as well in a table without month - quarter details ?

Table is like product for rows and revenue, units,.. in columns.

It does work with Calculate function like this one below : CALCULATE(SUM(Data[revenue]) ; Calendar[Quarter_nb]=3). However it is not dynamic.

When I replace number 3 with a measure calculating dynamically the number of the current quarter, it does not work.

CALCULATE(SUM(Data[revenue]); FILTER ( VALUES(Calendar[Quarter_nb]) ; Calendar[Quarter_nb] = measure )

Measure looks in the fact table for last date. Then extract the month and then a roundup(month/3;1) to get the quarter.

Anyone ?

If you could explain me why the version 2 does not work. The measure displays the correct quarter when display on a card.

Thanks !!
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Without seeing the actual measure for number 2 it’s hard to say. Probably your measure is being calculated in the row context of the filter, rather than of the whole table. Try including an ALL in measure for the Calendar table.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,854
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top