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
I have 2 columns
[Franchise] and [Metier] in table 'Product mapping
I also created a combined column which i do not want in my visual.
When i add the combined column to the visual It shows the correct value.
When i remove it it doesn't.
SO i am trying to write a measure that calculates a subtotal based on the 2 individual columns.
I have a measure [2022 units] in table '2021/2022 Aug YTD Product P&L to sum up.
Solved! Go to Solution.
Hi @BIMonkey ,
Please have a try.
test =
VAR currentitem =
SELECTEDVALUE ( 'Product Mapping'[Filter F-M] )
RETURN
CALCULATE (
SUM ( '2021/2022 Aug YTD Product P&L'[2022 Units] ),
FILTER (
ALL ( '2021/2022 Aug YTD Product P&L' ),
'Product Mapping'[Filter F-M] = currentitem
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @BIMonkey ,
Please have a try.
test =
VAR currentitem =
SELECTEDVALUE ( 'Product Mapping'[Filter F-M] )
RETURN
CALCULATE (
SUM ( '2021/2022 Aug YTD Product P&L'[2022 Units] ),
FILTER (
ALL ( '2021/2022 Aug YTD Product P&L' ),
'Product Mapping'[Filter F-M] = currentitem
)
)
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
---|---|
18 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
36 | |
34 | |
19 | |
18 | |
15 |