Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a table from which I need to create new table that will agreggate the data based on Seller and only for the latests date for which i have data for.
First i created measure that will store the last date of my data.
MaxDate = Max('SellerPrices'[Date]')
Which indeed returns the latest date i have in my dataset
Now, when creating the table, I am using ADDCOLUMNS(SUMMERIZE....
And then creating column Amazon which will be the sum of all prices for amazon for the latest data for which i have the data.
Solved! Go to Solution.
Hi @slav84 ,
try to write [MaxDate] not like a measure, but like variable.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you.
That worked.
But why did this work and not with measure?
Because indeed a variable is a constant, is a number and it is accepted in the 2nd argument of the Calculate function.
Hi @slav84 ,
try to write [MaxDate] not like a measure, but like variable.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |