Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
I have date slicer and I want prior period value.
suppose I select 15-31 January date range then I want prior period sum value from 1-14 January.
A need the sum of (column A, column B, column C) 1-14 January
Solved! Go to Solution.
You may drag only the date column and measure to the visual.
Regards,
@adityavighne - It should be possible, but you need to clearly define the rule in order to modify the filter context. Is this the rule?:
1. Find the minimum date.
2. Find the month for that date.
3. Filter on only dates that are before the minimum date and within the same month.
Cheers!
Nathan
Can I get DAX for this ...what I wrote is giving the only month before data.
You may create a calendar table and use below measure.Attached sample file for your reference.
Measure =
CALCULATE (
SUM ( Data[Column1] ) + SUM ( Data[Column2] )
+ SUM ( Data[Column3] ),
FILTER (
Data,
Data[Date] < MIN ( 'Calendar'[Date] )
&& MONTH ( Data[Date] ) = MONTH ( MIN ( 'Calendar'[Date] ) )
)
)
Regards,
This measure showing blank value
You may drag only the date column and measure to the visual.
Regards,
Hi @adityavighne ,
I think, prior period date range is not possible, only for a single date is possible.
Like, if you select January 2019,
can get the previous month, means December 2018 or
can get the current month last year, means January 2018.
Regards,
Pavan Vanguri.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |