Forum Discussion
calculate difference on two column values on visual Table
- 7 years ago
Hi nicknl ,
To create a measure as below. If it doesn't meet your requirement, kindly share your sample data and excepted result to me. Please upload your files to One Drive and share the link here.
difference = SUM(Table1[amount])-SUM(Table1[amount2])
Please find the pbix as attached.
Regards,
Frank
Yes, you would use a measure and add it to your table visual. In theory it might be something like:
Measure =
VAR __sum1 = SUM('TableX'[amount])
VAR __sum2 = SUM('TableY'[amount])
RETURN
__sum1 - sum2When I try this measure, it takes ages to load, any idea why?
- Greg_Deckler7 years agoCommunity Champion
OK, first question, does it work?
After that, tough to say exactly, how many rows are we talking about?
- nicknl7 years agoRegular Visitor
unfortunately not, when I added the measure, it says: Can't display the visual.
Uhm, we are talking about an excel file with around 30.000 rows, but I narrowed it down, but still taking a long time to load.
But I would like it to work first, before I am fixing the performance issue :P