Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
How do I get a Total for Actual in this table?
Actual =
VAR startDate_ = SELECTEDVALUE( 'Products'[Start date])
VAR endDate_ = EDATE ( startDate_, 4 )
VAR Act =
CALCULATE ( SUM ( Sales[Kilos] ), Sales[Invoice date] >= startDate_ && Sales[Invoice date] <= endDate_ ) / 1000
RETURN Act
Best regards
Lotte
@LotteLaugesen , I am assuming this measure and data type is number/decimal
If there no issue try return like
return
sumx(summarize(Table, Table[number], Table[Start Date],"_1"), [Act])
Yes, it is decimal number 🙂
I'm not sure that I understand your solution.
I need both values for Actual per Number and the total for Actual.
@LotteLaugesen ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hi
I have added a new file where the calculation is visible 😉
https://1drv.ms/u/s!AoecG91dlcEedQ5858sIN8ZRh9c?e=0ag264
Hope you can help me 🙂
Best regards
Lotte
Hi
I have added a link to the pbix file.
https://1drv.ms/u/s!AoecG91dlcEedFWCA6Fii_s-q9c
I hope you can help me 🙂
Best regards
Lotte
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |