Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I'm creating a budget report with Actual and Budgeted numbers. If the month has already passed (JAN - OCT) I want the table matrix to pull Actual numbers that I have created seperate measures for. If the month has yet to pass I want the table matrix to pull budgeted amount (Nov - Dec). Is there any IF statement I can write for this to be possible.
Column's used:
Date format: 202001 = January, 2020 Converted to Hierarchy for (Y,Q,M,D)
HI @aishak12,
I think provide some dummy data with raw table structure and expected results should help us clarify your scenario and test to coding formula on it.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
If you have a calendar table with a YearMonth column (YYYYMM formated as a number) for the dates, you can create measures:
Sum of Sales = SUM(Actuals1[Actuals])
Sum Target = SUM(Target2[Target])
and the measure to use in your visual:
Sales and Budget =
VAR YMToday = VALUE(FORMAT(TODAY(), "YYYYMM"))
RETURN
IF(MAX('Calendar Table'[YearMonth])< YMToday, [Sum of Sales], [Sum Target])
Proud to be a Super User!
Paul on Linkedin.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
45 | |
39 | |
30 |
User | Count |
---|---|
159 | |
98 | |
60 | |
42 | |
42 |