Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I would like to calculate the sum on a dynamic date range, for example:
For March 2019, the sum of material consumption must be:
= Sum of material consumption (April 2018 to March 2019)
Another example :
For September 2019, the sum of material consumption must be:
= Sum of material consumption (October 2018 to September 2019)
Please what is the DAX formula to meet this need?
Thank you.
Cordially.
Solved! Go to Solution.
Hello:
Try the following formula:
MAT cost:= calculate([Sum of material consumption],datesinperiod(calendar[date],lastdate(calendar[date]),-1,year))
Good luck,
José Luis
Hello:
Try the following formula:
MAT cost:= calculate([Sum of material consumption],datesinperiod(calendar[date],lastdate(calendar[date]),-1,year))
Good luck,
José Luis
It worked perfectly for me. Thanks a lot!
Hello,
For this table in Power BI which consists of the fields (fields of the different tables), how to invert the rows in columns and the columns in rows?
You will find attached a screenshot of my table on Power BI.
I thank you in advance.
Cordially.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
24 | |
10 | |
10 | |
9 | |
7 |