Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi Team, I have directquery model and i need to show based on year selection on slicer i want show ouarter wise and for example 2024 q1 should show value for 2023 Q4, if 2024 Q2 the value should show 2023 Q1 value like below. I need to show result like below query.
Solved! Go to Solution.
Hi @sreddy47652 ,
I’ve made a test for your reference:
1\I assume there is a table
2\Create a measure
NewSumOfValue =
CALCULATE(
MAX(Table1[Value]),
REMOVEFILTERS(Table1),
(Table1[Year] = (MAX(Table1[Year]) - 1) && Table1[Quarter] = 4) ||
(Table1[Year] = MAX(Table1[Year]) && Table1[Quarter] = (MAX(Table1[Quarter]) - 1))
)
3\Result
Best Regards,
Bof
Hi @sreddy47652 ,
I’ve made a test for your reference:
1\I assume there is a table
2\Create a measure
NewSumOfValue =
CALCULATE(
MAX(Table1[Value]),
REMOVEFILTERS(Table1),
(Table1[Year] = (MAX(Table1[Year]) - 1) && Table1[Quarter] = 4) ||
(Table1[Year] = MAX(Table1[Year]) && Table1[Quarter] = (MAX(Table1[Quarter]) - 1))
)
3\Result
Best Regards,
Bof
Try this DAX Measure:Last year same QTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESQTD(dateadd('Date'[Date],-1,Year)))
@Tahreem24 As i mentioned it's directquery mode and time intelligence functions will not work.
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
52 | |
41 | |
39 | |
37 |