Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I'm encoutering difficulties to achieve something simple I believe, but obviously not for me.. :(. Can you help me please ?
Let's say in my Table1 I have in my first column fruits name (Apple, Orange, etc...). In column 3 I have the number of days since I got my first fruit for each line (I have many oranges, so I use "max" to get the number of days of each oldest fruit)
So in my example I got my first Orange 353 days ago, first apple 176 days etc...
I have also a segment to filter only One Fruit (or by fruit type), so my Table1 show only filtered lines if I tick a case
For my need, I created a Slicer based on a Calendar Table (linked to my Table1). It dynamically change values of my columns 2 and 4 (it's the attended behaviour) and the Column 3 stay identical, normal since it's a "max" value, who mustn't change
Now, for some reason, I need to add a Column "5" with a condition :
If the number of Network Days selected in the slicer is smaller than my Column 3, it must show this value (named "EcartSlicer" below)
If not, it must show the "Column3" value
I created a measure to get the number of Network Days of the slicer, this part work wells :
I hope I was clear, if not tell me.
Thanks for your help
Solved! Go to Solution.
I finally could get the job done by playing with the filters, since columns 2 / 3 / 4 are empty only when I apply a filter on my segment, if I also apply a page filter to not show empty values, I get only the wished line.
It's a bypass but it's working
Thanks for your help anyway
I think this solution is helpful for you.
Thanks for your answer, but I'm sorry I don't understand it, could you elaborate ?
For me your formula is exactly the same as mine
"EcartSlicer = var _max = maxx(ALLSELECTED('Calendrier'), 'Calendrier'[Date])
I finally could get the job done by playing with the filters, since columns 2 / 3 / 4 are empty only when I apply a filter on my segment, if I also apply a page filter to not show empty values, I get only the wished line.
It's a bypass but it's working
Thanks for your help anyway
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |