Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi
I have table like below
Product | Rewardamount | Bill amount | Month |
A | 100 | 60 | 1 |
A | 40 | 70 | 2 |
A | 30 | 10 | 3 |
A | 50 | 70 | 4 |
B | 50 | 60 | 1 |
B | 20 | 70 | 2 |
B | 200 | 10 | 3 |
B | 50 | 70 | 4 |
C | 100 | 60 | 1 |
C | 60 | 70 | 2 |
C | 30 | 10 | 3 |
C | 100 | 70 | 4 |
And I have calendar filter.
Here I need to find the count of eligible product based on the following condition for selected month
Condition is Rewardamount > Billamount then the production eligible.
For example if choose month 1 and 2 then it has to calculated something like this
Product A = (100 + 40) > (60 + 70)
Product B = (50+20) > (70 + 60)
Product C = (100+60) > (60 + 70)
The result should be 2, because product B is not eligible as per the condition. I need to calculate in this way dynamically.
Please someone help me on this.
Thanks in Advance
Nagarajan. V
Solved! Go to Solution.
Hi,
This formula will work
=COUNTROWS(FILTER(SUMMARIZE(Data,Data[Product],"ABCD",SUM(Data[Rewardamount]),"EFGH",SUM(Data[Bill amount])),[ABCD]>[EFGH]))
Hi,
This formula will work
=COUNTROWS(FILTER(SUMMARIZE(Data,Data[Product],"ABCD",SUM(Data[Rewardamount]),"EFGH",SUM(Data[Bill amount])),[ABCD]>[EFGH]))
This is perfect.
Thanks a lot
Nagarajan. V
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |