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 a sales invoice table presenting all historic invoices "CustomerInvoice". The invoice table has a column "posting period" and a column "closing period". The posting period is the period the invoice was posted, and closing is the period where the cash was received and invoice closed. I would like to populate an invoice subledger based on the selected period in a slicer which is coming from the period date table "visma_ financialPeriod".
I have created the following measure but it only returns the invoices having posting periods = selected financialperiod and not the invoices which where posted before the selected financial period:
It must be easy to solve, but I just cannot see it at this moment.
Solved! Go to Solution.
Hi @Khalidc - I am not sure about the VAR for post and close period. Would something like the following work.
Account Receivable Subledger =
VAR _period = SELECTEDVALUE ( Visma_financialperiod[Period] , MAX ( Visma_financialperiod[Period] ) )
RETURN
CALCULATE ( SUM ( Visma_customerInvoice[Amount] ) ,
Visma_customerInvoice[postperiod adj] <= _period ,
Visma_customerInvoice[closedfinancialperiod] > _period ||
ISBLANK( Visma_customerInvoice[closedfinancialperiod]
)
Hi @Khalidc - I am not sure about the VAR for post and close period. Would something like the following work.
Account Receivable Subledger =
VAR _period = SELECTEDVALUE ( Visma_financialperiod[Period] , MAX ( Visma_financialperiod[Period] ) )
RETURN
CALCULATE ( SUM ( Visma_customerInvoice[Amount] ) ,
Visma_customerInvoice[postperiod adj] <= _period ,
Visma_customerInvoice[closedfinancialperiod] > _period ||
ISBLANK( Visma_customerInvoice[closedfinancialperiod]
)
Thanks!
First it returned the exact same result but after adding the ALL() to it, it worked, see in red!
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 |
---|---|
54 | |
26 | |
23 | |
14 | |
11 |
User | Count |
---|---|
78 | |
65 | |
46 | |
17 | |
12 |