The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi All
I have below expression from Mr Ash :-
Solved! Go to Solution.
@Anonymous ,
That is working fine, I did check on that. Refre the below screenshot. LYTD is 10. Refre second for the value in table for 2019 as well.
Both the values are same and attaching file for you reference.
https://www.dropbox.com/s/qqembxhjv7d8aos/HOW%20TO%20COMPUTE%20REVENUE%20YTD%20V0006.pbix?dl=0
Regards,
Manikumar
Proud to be a Super User!
Hi @Anonymous ,
You can use something like:
YTD Total =
IF (
ISBLANK ( [Total] ),
BLANK (),
IF (
MIN ( 'Date'[Date] ) > TODAY (),
BLANK (),
CALCULATE (
[Total],
DATEADD ( DATESYTD ( 'Date'[Date], "31/12" ), -1, YEAR ),
ALL ( 'Table'[GL CODE] )
)
)
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Sir
I still get error on Total .
https://www.dropbox.com/s/xr0lb692d2yv81o/HOW%20TO%20COMPUTE%20REVENUE%20YTD%20V0006.pbix?dl=0
Above is my PBI file
Hi @Anonymous ,
You don't have Total column or Total measure in your data model. Use the formula I suggested above.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
Hi Sir
Very sorry that i am still lost. If i use the expression again , it will be still error.
Paul
@Anonymous ,
That is working fine, I did check on that. Refre the below screenshot. LYTD is 10. Refre second for the value in table for 2019 as well.
Both the values are same and attaching file for you reference.
https://www.dropbox.com/s/qqembxhjv7d8aos/HOW%20TO%20COMPUTE%20REVENUE%20YTD%20V0006.pbix?dl=0
Regards,
Manikumar
Proud to be a Super User!
Hi Mani
Thank you very much , now the value appear . I need to further check on it later.
Paul
Hi Ded
Thank you for your sharing , i get error below :-
My PBIX file :-
https://www.dropbox.com/s/q93wobh5avy7n9b/HOW%20TO%20COMPUTE%20REVENUE%20YTD%20V0005.pbix?dl=0
Hi @Anonymous ,
Would you please use the following one:
YTD Total =
IF (
ISBLANK (SUM('Table'[AMOUNT]) ),
BLANK (),
IF (
MIN ( 'Date'[Date] ) > TODAY (),
BLANK (),
CALCULATE (
SUM('Table'[AMOUNT]),
DATEADD ( DATESYTD ( 'Date'[Date], "31/12" ), -1, YEAR ),
ALL ( 'Table'[GL CODE] )
)
)
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai