Forum Discussion
PwrBI01
5 years agoPost Patron
Cumulative value with Userelationship
Hi guys, I have the following table (it contains the measure 'Pendiente de cobro'): And I would like to obtain the following one: The main problem is that the table cal...
- 5 years ago
Hi guys,
I have solved the problem.
The measure I need to introduce is:
Pendiente de cobro =Var Facturado = CALCULATE(SUM('T_FACTURACIONEXPEDIENTERESUMIDA'[TOTALAPAGAR]);'T_FACTURACIONEXPEDIENTERESUMIDA'[DIASSINCOBRAR]>0;USERELATIONSHIP(T_CALENDARIO[Fecha];'T_FACTURACIONEXPEDIENTERESUMIDA'[FECHAFACTURA]);FILTER(ALL(T_CALENDARIO[Fecha]);T_CALENDARIO[Fecha]<=MAX(T_CALENDARIO[Fecha])))Var Cobrado = CALCULATE(SUM('T_FACTURACIONEXPEDIENTERESUMIDA'[ENTRADA]);'T_FACTURACIONEXPEDIENTERESUMIDA'[DIASSINCOBRAR]>0;USERELATIONSHIP(T_CALENDARIO[Fecha];'T_FACTURACIONEXPEDIENTERESUMIDA'[FECHAFACTURA]);FILTER(ALL(T_CALENDARIO[Fecha]);T_CALENDARIO[Fecha]<=MAX(T_CALENDARIO[Fecha])))Var PendienteCobro = Facturado-CobradoReturnPendienteCobro
VijayP
5 years agoCommunity Champion
Sample Data would help to give more clear solution. Appreciate Your Kudos!
- PwrBI015 years agoPost Patron
Hi VijayP,
I send you a sample data (this is not the original one, which is much bigger), so I need to keep the not activated relationship between both tables.
The link is https://www.dropbox.com/s/kip4r60nztzkzmc/Prueba%20Power%20BI.pbix?dl=0
Thanks in advance.