Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone.
I al using a mesure below to get a table with just negatives values and then i get a sum of these values ( the number of values is dynamic as i use a what if parametre). However in my table u see that i get a good total but i want to know how to filter my table so if i choose 3 in the parametre i could get only three values in my table and not ALL values.
I created a rank column in my BASE table (
So i can reference this column in my measure
But it still doesnt work
Thanks a lot
Solved! Go to Solution.
try this code:
Measure =
SUMX (
FILTER (
BASE;
BASE[ MARGE ACT] <= 0
&& BASE[Rank] <= SELECTEDVALUE ( 'Paramètre'[Valeur Paramètre] )
);
BASE[ MARGE ACT]
)
this measure will only show values for whatever is in the top, but you will still see all rows because e.g. 'Paramètre' has value for all entries, not just the Top entries
try this code:
Measure =
SUMX (
FILTER (
BASE;
BASE[ MARGE ACT] <= 0
&& BASE[Rank] <= SELECTEDVALUE ( 'Paramètre'[Valeur Paramètre] )
);
BASE[ MARGE ACT]
)
this measure will only show values for whatever is in the top, but you will still see all rows because e.g. 'Paramètre' has value for all entries, not just the Top entries
User | Count |
---|---|
25 | |
11 | |
8 | |
7 | |
6 |
User | Count |
---|---|
25 | |
13 | |
12 | |
10 | |
6 |