Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
I would like to show a measure that would show a measure that would show the % change between the value today in one table against a value today in another table.
Thanks
Solved! Go to Solution.
Hi @Anonymous
If your data model is using a Star Schema and a date table then this can be achieved. The date table date column should have a one to many relationship with "Sales Date" in your two tables.
Create two measures
Sales = SUM(Table1[Amount])
Sales_2 = SUM(Table2[Amount])
Now to work out the % difference
% Difference =
VAR _Diff = [Sales] - [Sales_2]
RETURN
DIVIDE(_Diff, [Sales_2])
If you add the date column from the date table to a visual and then the last measure, then you will see the % difference
Hope this helps
Joe
Proud to be a Super User! | |
Date tables help! Learn more
Hi @Anonymous
If your data model is using a Star Schema and a date table then this can be achieved. The date table date column should have a one to many relationship with "Sales Date" in your two tables.
Create two measures
Sales = SUM(Table1[Amount])
Sales_2 = SUM(Table2[Amount])
Now to work out the % difference
% Difference =
VAR _Diff = [Sales] - [Sales_2]
RETURN
DIVIDE(_Diff, [Sales_2])
If you add the date column from the date table to a visual and then the last measure, then you will see the % difference
Hope this helps
Joe
Proud to be a Super User! | |
Date tables help! Learn more