Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
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!
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
17 | |
15 | |
13 | |
10 | |
10 |