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
Just working on getting table to show a correct total on a table visual.
The calculation that I am using:
How can I correct the calculation
Hi @Anonymous ,
Please try
Current Price FOB TEMP =
VAR CurrentDate =
TODAY ()
VAR AllPreviousRatingsTable =
FILTER ( 'Market Price', 'Market Price'[Date] <= CurrentDate )
VAR PreviousRatingTable =
TOPN ( 1, AllPreviousRatingsTable, 'Market Price'[Date], DESC )
VAR PreviousRating =
MAXX ( PreviousRatingTable, 'Market Price'[Price] )
RETURN
SUMX (
SUMMARIZE ( 'Market Price', 'Market Symbol'[Name], "LastPrice", PreviousRating ),
[LastPrice]
)
Or try
New measure =
SUMX ( 'Market Price', [Current Price FOB TEMP] )
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Stephen
I have made the change but seems to be the same outputs:
Seems like everytime I add an extra item to the filter it increases total by $147.50
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |