Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hi all,
I would be very grateful if somebody can help me.
I have an issue when using function IF as follows:
'EQUITY AJUSTED = (SUMX(Global_Table;IF([Measure_1] > 0;
([Measure_2]*RELATED('Specific_Table'[Column_1]))+[Measure_1];
([Measure_2]*RELATED('Specific_Table'[Column_1])
My problem is the following:
I want to use the IF function ([Measure_1] > 0) over the subtotal (Measure_1) of the first level of the hierarchy, because such function IF has sense using it over the net subtotal, but not over the detailed accounts if I drill down in the matrix.
If I drilled down expanding the table (second level of the hierarchy), I can find several rows below with different figures (Measure_1) which may be higher or lower than 0. With my formula, I can see that my IF function is operating and calculating the result differently row by row (but It has no sense if it is not the net subtotal).
What is what I want to get?
If the net subtotal (Measure_1) is > 0; do for all rows ([Measure_2]*RELATED('Specific_Table'[Column_1])+[Measure_1])
Else; do for all rows ([Measure_2]*RELATED('Specific_Table'[Column_1])
Is it possible? Any alternative solution?
Thank you so much in advanced.
Regards
Solved! Go to Solution.
You may check if the posts below help.
You may check if the posts below help.
I think you have to use isfiltered or isinscope
refer :https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/
Thank you for the tip!
Using ISINSCOPE function, I think I am closer to the solution (thanks!), but I do not having yet.
This is is the progress:
I have identified with "TRUE" the level of the hierarchy in which I want to use the IF function.
Maybe, a solution would to calculate separately the net results of each measure for the "TRUE" level and afterwards do the IF function.
Thanks again
By the way, my current formula would be:
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
73 | |
70 | |
67 | |
44 | |
41 |
User | Count |
---|---|
48 | |
42 | |
29 | |
28 | |
27 |