Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello,
I'm looking for some help trying to calculate the total billed amount for either the first or second half of the year depending on the date. i.e. if today is April 1 then calculate the billed amount for months 1 to 6 (regardless if no data exists for Apr/May/Jun) and if July 1 then calculate amounts for months 7 to 12. I do have a calendar table created however I can't seem to get my head around the syntax to put it together.
Any help would be appreciated!
Thank you!
Solved! Go to Solution.
@Anonymous - Please try the following:
1. If you don't have a column for semesters (half-years) in your calendar table, add it.
2. Create a measure similar to this:
Your Sum Measure = var current_semester = CALCULATE(VALUES('Date'[Semester]), 'Date'[Date] = TODAY()) return CALCULATE(SUM(YourTable[YourColumn]), 'Date'[Semester] = current_semester)
Hope this helps,
Nathan
@Anonymous - Please try the following:
1. If you don't have a column for semesters (half-years) in your calendar table, add it.
2. Create a measure similar to this:
Your Sum Measure = var current_semester = CALCULATE(VALUES('Date'[Semester]), 'Date'[Date] = TODAY()) return CALCULATE(SUM(YourTable[YourColumn]), 'Date'[Semester] = current_semester)
Hope this helps,
Nathan
Thanks Natel, it worked perfectly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |