Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi I would like to ask for your help. I have this covenant financial report and I need to show the values only until the recent month of the current year. In my visuals I should only have values until December 2022, but it fills the whole year with the same value as the current month and the total was messed up.
I have 4 tables BS Template -Accounts - Journals - Dates
Data Model
This is my measure:
Covenant M =
var _dummyaccount = SELECTEDVALUE('BS Template'[Items Normalize])
return
SWITCH(
TRUE() ,
_dummyaccount = "Total Assets", [Total Assets $$],
_dummyaccount = "Total Liabilities", [Total Liabilities $$],
_dummyaccount = "Total Equity",[Total Equity $$],
_dummyaccount = "Total Tangible Assets", [Total Tangible Assets],
_dummyaccount = "Net Tangible", [Net Tangible],
_dummyaccount = "In $ terms to find", [In $ terms to find],
_dummyaccount = "Tangible Asset %", FORMAT([Tangible Asset %], "0.00%"),
_dummyaccount = "Shortfall", FORMAT([Shortfall], "0.00%"),
CALCULATE([Totals])
)
please try
Covenant M = var _dummyaccount = SELECTEDVALUE('BS Template'[Items Normalize]) var _recentmonth = MAX('Dates'[Month]) return SWITCH( TRUE() , _dummyaccount = "Total Assets", [Total Assets $$], _dummyaccount = "Total Liabilities", [Total Liabilities $$], _dummyaccount = "Total Equity",[Total Equity $$], _dummyaccount = "Total Tangible Assets", [Total Tangible Assets], _dummyaccount = "Net Tangible", [Net Tangible], _dummyaccount = "In $ terms to find", [In $ terms to find], _dummyaccount = "Tangible Asset %", FORMAT([Tangible Asset %], "0.00%"), _dummyaccount = "Shortfall", FORMAT([Shortfall], "0.00%"),
CALCULATE([Totals], FILTER('Dates', 'Dates'[Month] <= _recentmonth)) )
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |