Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hello all,
I have active cases count in Line chart in PBI, when I drill down to Month level I can see each Month's Active cases count, but when I drill up the whole year active cases should be the Count which is there for december month, it should not be summation all months and showing for the Year
Below is my active cases count for year 2023
when I drill up to Year level the active cases for 2023 should be the 9,627 which is there for December month
In my data for Active Cases Lists_ table I'll be having two columns, FIRST_DAY_MONTH , CASE_KEY
FIRST_DAY_OF_MONTH | CASE_KEY |
1/1/2023 | 1052 |
1/2/2023 | 1056 |
1/1/2023 | 1176 |
1/3/2023 | 1189 |
1/4/2023 | 1052 |
Help me Thanks!!
Solved! Go to Solution.
@Anonymous Try the following. PBIX is attached below signature.
Measure =
VAR __LastDate = MAX('Table'[FIRST_DAY_OF_MONTH])
VAR __LastNumber = SUMX(FILTER('Table', [FIRST_DAY_OF_MONTH] = __LastDate), [CASE_KEY])
VAR __Result = IF(HASONEVALUE( 'Table'[FIRST_DAY_OF_MONTH] ), SUM('Table'[CASE_KEY]), __LastNumber)
RETURN
__Result
@Anonymous Try the following. PBIX is attached below signature.
Measure =
VAR __LastDate = MAX('Table'[FIRST_DAY_OF_MONTH])
VAR __LastNumber = SUMX(FILTER('Table', [FIRST_DAY_OF_MONTH] = __LastDate), [CASE_KEY])
VAR __Result = IF(HASONEVALUE( 'Table'[FIRST_DAY_OF_MONTH] ), SUM('Table'[CASE_KEY]), __LastNumber)
RETURN
__Result
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
91 | |
74 | |
64 | |
48 | |
36 |
User | Count |
---|---|
115 | |
86 | |
80 | |
58 | |
39 |