The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have a data table where i would like to data where two conditions meet.
The name of teh table is P&L
I'd would like to pull data where Cleandar Year= 2021 and P&L= Off Invoice Sales
I am trying to use below formula however it is returning blank value
Solved! Go to Solution.
Try:
CALCULATE(
SUM('P&L'[Values]),
'P&L'[P&L]= "Off Invoice Sales",
'P&L'[Calendar Year]= 2021
)
I've tidied the code and also made calendar year equal just 2021.
If your calendar year is a date column use DATE(2021, 12, 31) to ensure it's being parsed correctly.
Try:
CALCULATE(
SUM('P&L'[Values]),
'P&L'[P&L]= "Off Invoice Sales",
'P&L'[Calendar Year]= 2021
)
I've tidied the code and also made calendar year equal just 2021.
If your calendar year is a date column use DATE(2021, 12, 31) to ensure it's being parsed correctly.
Yes it worked with DATE(2021, 12, 31).
Thanks
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
78 | |
66 | |
52 | |
50 |
User | Count |
---|---|
121 | |
120 | |
78 | |
63 | |
62 |