Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi,
With this data I would like to create a segment for Distance runned that varies from 0 - 500 but I didn't figure out so far how to do this.
My objective is to have a filter that allow to keep all the runners who runs more than N kms in total.
Thanks in advance
Kind regards
Saam
Solved! Go to Solution.
@SaaM , You will not be able to create a bucket using this(what if) . You can create a measure
example
measure =
VAR _max = MAXX(allselected('Whatif'),'Whatif' [value])
var _min = MinX(allselected('Whatif'),'Whatif' [value])
return
calculate(Sum(Table[ConsumptionCount]), filter(Table, Table[Distance runned]>=_min && Table[Distance runned]<=_max))
Hi, @SaaM ;
First you could create a "0-500" table as a slicer. then create a flag measure .
1.create a table
slicer = GENERATESERIES(0,500,1)
2.create a flag measure.
flag =
VAR _perruned =
CALCULATE ( SUM ( [Distance runned] ), ALLEXCEPT ( 'Table', 'Table'[Athlete] ) )
RETURN
IF (
_perruned <= MAX ( 'slicer'[Value] )
&& _perruned >= MIN ( 'slicer'[Value] ),
1,
0
)
3.apply it into filter.
The final output is shown below:
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Actually I am trying to have something like this to filter the distance runned by each athlete
for example the athelte a runned once 200 kms and then 300 kms so he runned 500 kms in total.
@SaaM , You will not be able to create a bucket using this(what if) . You can create a measure
example
measure =
VAR _max = MAXX(allselected('Whatif'),'Whatif' [value])
var _min = MinX(allselected('Whatif'),'Whatif' [value])
return
calculate(Sum(Table[ConsumptionCount]), filter(Table, Table[Distance runned]>=_min && Table[Distance runned]<=_max))
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 46 | |
| 43 | |
| 39 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 31 | |
| 27 | |
| 24 |