Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hey PBI Community - I am trying to write a query to sum up the life-to-date financials. This would mean filtering for several different fiscal years. I have tried with the query below but when I create this measure and drag it in to the PBI workspace nothing comes up. Any recommendations would be very much appreciated!
LTD Actuals =
var FSG = SELECTEDVALUE('Trended PL'[FSG5])
var a =
SUMX(
FILTER('Trended PL',
'Trended PL'[Scenario]="Actual"
&&'Trended PL'[Fiscal Year]="FY2019"
&&'Trended PL'[Fiscal Year]="FY2020"),
'Trended PL'[PL Amount CYP])
return IF(FSG="FSG10000",a,a*-1)
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please try something like below whether it suits your requirement.
LTD Actuals =
VAR FSG =
SELECTEDVALUE ( 'Trended PL'[FSG5] )
VAR a =
SUMX (
FILTER (
'Trended PL',
'Trended PL'[Scenario] = "Actual"
&& OR (
'Trended PL'[Fiscal Year] = "FY2019",
'Trended PL'[Fiscal Year] = "FY2020"
)
),
'Trended PL'[PL Amount CYP]
)
RETURN
IF ( FSG = "FSG10000", a, a * -1 )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
I think you need this
LTD Actuals =
VAR FSG =
SELECTEDVALUE ( 'Trended PL'[FSG5] )
VAR a =
SUMX (
FILTER (
'Trended PL',
'Trended PL'[Scenario] = "Actual"
&& 'Trended PL'[Fiscal Year] in {"FY2019","FY2020"}
),
'Trended PL'[PL Amount CYP]
)
RETURN
IF ( FSG = "FSG10000", a, a * -1 )
Hi,
I am not sure if I understood your question correctly, but please try something like below whether it suits your requirement.
LTD Actuals =
VAR FSG =
SELECTEDVALUE ( 'Trended PL'[FSG5] )
VAR a =
SUMX (
FILTER (
'Trended PL',
'Trended PL'[Scenario] = "Actual"
&& OR (
'Trended PL'[Fiscal Year] = "FY2019",
'Trended PL'[Fiscal Year] = "FY2020"
)
),
'Trended PL'[PL Amount CYP]
)
RETURN
IF ( FSG = "FSG10000", a, a * -1 )
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
83 | |
64 | |
60 | |
55 |
User | Count |
---|---|
179 | |
108 | |
105 | |
71 | |
70 |