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 am new to Power BI. I need to calculate the number of business cases remaining from "today" to the end of the fiscal year, Oct. 31st.
BC Gate Status is the table with BCDC MONTH holding the dates of the business cases and INITIATIVE NAME being the name of the business case.
CA PPM REFERENCE # INITIATIVE NAME BCDC MONTH
IDE-00012580 BC 1 March, 2024
IDE-00010932 BC 2 April, 2024
IDE-00014835 BC 3 May, 2024
IDE-00014841 BC 4 June, 2024
IDE-00014820 BC 5 June, 2024
IDE-00012729 BC 6 June, 2024
IDE-00014243 BC 7 July, 2024
IDE-00011566 BC 8 July, 2024
IDE-00014788 BC 9 July, 2024
IDE-00014792 BC 10 July, 2024
IDE-00014802 BC 11 October, 2024
IDE-00014826 BC 12 October, 2024
IDE-00012712 BC 13 October, 2024
IDE-00014791 BC 14 October, 2024
IDE-00014837 BC 15 November, 2024
Solved! Go to Solution.
@Jhadur Where the red squigly line begins, remove the ", ". Well, should be able to remove the "'BC Gate Status', " entirely. Just the [BDCD MONTH] <= __MaxDate after the &&
@Jhadur Is BDC Month a date or text?
It is a date.
@Jhadur OK:
Measure =
VAR __MinDate = TODAY()
VAR __MaxDate = DATE( YEAR( __MinDate ), 10, 31 )
VAR __Table = FILTER( 'BC Gate Status', [BCDC MONTH] >= __MinDate && [BDC MONTH] <= __MaxDate )
VAR __Result = COUNTROWS( __Table )
RETURN
__Result
Thanks Greg! I am getting this error with the measure. Any idea how I can fix that?
@Jhadur Where the red squigly line begins, remove the ", ". Well, should be able to remove the "'BC Gate Status', " entirely. Just the [BDCD MONTH] <= __MaxDate after the &&
There are two things, based on the post,
I believe you have to paste only once and you have shared 2 images.
Check what @Greg_Deckler pasted the code
it should be somewhat like:
I did only paste once in Power BI. I pasted 2 images here to show both of the issues I am having. First is that Power BI won't recognize the 2nd [BCDC MONTH] in the formula. I get an unexpected parameter and cannot find name. The second image shows the error in yellow that I get on the whole formula.
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 |
---|---|
15 | |
11 | |
8 | |
8 | |
8 |
User | Count |
---|---|
22 | |
13 | |
11 | |
10 | |
10 |