The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I am trying to control the display of the Cumulative Expenditure of the table and the graph below according to the slicer selection.
When I make a single selection, the display works properly but when I make several selections nothing is displayed.
I have three tables that are related by "Date"
I have 4 measures which calculate Cumulative Expenditure for each Financial Year and one measure which calculates Forecast Expenditure for FY 23-24.
Measure to calculate Cumulative Expenditure for FY 23-24 goes like this :
Does anyone have any idea how I could solve my problem to be able to simultaneously display Cumulative Expenditure for multiple Fiscal Year ?
Regards
the issue is that you have SELECTEDVALUE( Calendar_Table[ID] ) which i assume has 2+ values when you select two different financial years like in the screenshot. Unfortunately, SELECTEDVALUE returns blank if there isn't 1 distinct value. To fix it, consider changing that last condition to something like:
Calendar_Table[ID] in VALUES( Calendar_Table[ID] )
Thank you for your answer. This is moving in the right direction. Now I can display multiple Fiscal Year simultaneously on tha matrix but only the most recent FY selected is showing Cumulative Expenditure while I am getting repeatitive values for the other FY.
Here is the code after changing the last condition :
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |