Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
We have a model where we have some outlier-values in a measure for one department until a given date. We want to keep the values in the model, but hide them from one of the visuals.
Basically I try to express a condition:
FilterTest = if(Sheet1[Department] = "New Haven" && Sheet1[Date] < 08/01/2021, 0, 'Key Measures'[SumXvalue])
... hoping that this will give me nothing for New Haven until August 2021 and the original value for all other departments, including for New Haven from August 2021 onwards.
I have tried various IF, SWICTH, CALCULATE and FILTER combos, but always end up with an error:
A single value for column 'Department' in table 'Sheet1' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
The value we are working with in the real case is the result of a complex calculation (two 12-month rolling averages divided by eachother) so I cannot just omit the value from the underlying query.
I have uploaded a small pbix-file that illustrates the essence of the problem. Link to PBIX-file
Any suggestions would be highly appreciated.
Solved! Go to Solution.
HI
I create a new table with a date giving the start date you want to show results for each department
Department | Date |
Madrid | 01/01/2018 |
Copenhagen | 01/01/2018 |
New Haven | 01/07/2021 |
and after i changed your measure
Hope this will help you
HI
I create a new table with a date giving the start date you want to show results for each department
Department | Date |
Madrid | 01/01/2018 |
Copenhagen | 01/01/2018 |
New Haven | 01/07/2021 |
and after i changed your measure
Hope this will help you
Thank you very much! This worked and has now been implemented in the main model. Also served as an illustration on how we can share ideas and solutions in the forum. Great!
User | Count |
---|---|
22 | |
19 | |
12 | |
10 | |
10 |
User | Count |
---|---|
31 | |
25 | |
15 | |
13 | |
12 |