The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
I have the expression as shown below;
Test Value = IF(SELECTEDVALUE(POC[Report Param]) = "Gross Profit in % of Sales", (CALCULATE(SUM(POC[Value ($)]), FILTER(POC, POC[Report Param] = " Gross Profit")) / CALCULATE(SUM(POC[Value ($)]), FILTER(POC, POC[Report Param] = " Sales"))) , Sum(POC[Value ($)]))
I need to calculate the Value for Gross Profit in % of Sales as Gross Profit/Sales.
(Logic: Value is Sum of all the values for all Report Parameters except Gross Profit in % of Sales, For Report Parameters except Gross Profit in % of Sales the value is average of the Values)
But my expression is filtering out the Gross Profit in % of Sales from the table, how to resolve this?
any help is appreciated,
thanks
Bhavesh
Can you provide sample/example data? Having a bit of a hard time understanding what you are going for here. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
User | Count |
---|---|
85 | |
84 | |
36 | |
34 | |
31 |
User | Count |
---|---|
92 | |
79 | |
66 | |
55 | |
52 |