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 hope someone can help me move forward on this issue, I have in powerpivot created a measure for previous reported data. The measure I have created show correct grand total, but do not specify correctly previous reported data (difference in bank account between March 2 and March 4) , I think due to pivot filtering (March 4) and current reported data have less row specification than previous reported data.
For March 4 measure Bank Acc Prev Date need to specify 173 Bank accounts, but only specify 155, something is wrong in my measure for Bank Acc Prev Date.
'=CALCULATE(DISTINCTCOUNT('BankBalanceData'[Bank account]); FILTER(ALLEXCEPT(BankBalanceData; BankBalanceData[Bank]; BankAcc); 'BankBalanceData'[Date] = (Max('BankBalanceData'[Prev Date]))))
Same issue for Bank Account and for Bank Account Balance, issue only explained for Bank Account issue. |
Bank Acc: (measure) |
=DISTINCTCOUNT('BankBalanceData'[Bank account]) |
Simple count per pivot filter of Bank accounts. |
Bank Acc Prev Date: (measure) |
'=CALCULATE(DISTINCTCOUNT('BankBalanceData'[Bank account]); FILTER(ALLEXCEPT('BankBalanceData';'BankBalanceData'[Bank];'BankBalanceData'[Bank account];'BankBalanceData'[Bank account name]; BankAcc; 'BankBalanceData'[EntityGroup];CognosEntity[EntityGroup]); 'BankBalanceData'[Date] = (Max('BankBalanceData'[Prev Date])))) |
=CALCULATE(DISTINCTCOUNT('BankBalanceData'[Bank account]); FILTER(ALLEXCEPT(BankBalanceData; BankBalanceData[Bank]; BankAcc); 'BankBalanceData'[Date] = (Max('BankBalanceData'[Prev Date])))) |
Two calculation giving same result, but result does not show correct specifications. |
Trying to calculate difference between current Bank account reporting and same reported on date before current, where current = pivot filter. |
Bank accounts specification (row spec) does not match previous reported Bank accounts, but only current Bank accounts = spec is wrong. Grand total is correct. |
Prev Date: (calculated column) |
=CALCULATE((sum([Balance DKK])); (FILTER(ALLEXCEPT('BankBalanceData';BankBalanceData[Bank account]);[Date]=EARLIER([Prev Date])))) |
Bank data is not updated for every date, this calculation support to find last repported data. |
Hi @DKMuller,
As this problem is related to PowerPivot, you'd better post thread on a corresponding forum to get more professional advice. Besides, to better illustrate your requirement, please post sample data.
Regards,
Yuliana Gu
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 |
---|---|
111 | |
109 | |
89 | |
76 | |
67 |
User | Count |
---|---|
125 | |
111 | |
100 | |
83 | |
71 |