Forum Discussion
David_1970
9 years agoFrequent Visitor
Creating measure
Hi, The table below show gross revenue and disbursement for a lot of projects (only one shown though). On my report canvas I want a slicer where I can toggle between Gross Revenue and Net Revenu...
- 9 years ago
Hi David_1970,
You need an extra table which contains only one column that will be added into slicer later.
Create measures as below:
Gross Revenue = CALCULATE ( SUM ( 'revenue table'[Amount] ), 'revenue table'[Type] = "Gross Revenue" ) Net Revenue = SUM ( 'revenue table'[Amount] )
Revenue =
IF (
LASTNONBLANK ( 'Slicer table'[Revenue Type], 1 ) = "Gross Revenue",
[Gross Revenue],
[Net Revenue]
)Best regards,
Yuliana Gu
vanessafvg
9 years agoCommunity Champion
David_1970 to toggle look at the tecnique in this video from time 11:37
https://www.youtube.com/watch?v=Mpk9Js5jUeg
to create the measure
Net Revenue = sum(Gross Revenue) + sum(Disbursement)