March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi
I have a list of items to select for sample. The sample creteria is to cover at least 40% of the total.
So from the list, I should cover at least 2 items.
May I know what is the correct way so that the 2nd item will also show "Sample selected" in the "Review Creteria" column.
Thank you.
Solved! Go to Solution.
Hi @Angie_ ,
Review Creteria = VAR ranki = RANKX ( FILTER(Table1,Table1[accum]>0.4), Table1[accum],, ASC, DENSE ) RETURN IF ( Table1[accum]<=0.4 || ranki =1, "Sample selected", BLANK () )
Hi @Angie_ ,
To use this formula as below.
Review Creteria =
VAR ranki =
RANKX ( Table1, Table1[accum],, ASC, DENSE )
RETURN
IF ( Table1[accum]<=0.4 || ranki <= 2, "Sample selected", BLANK () )
Hi Frank
Thanks for the solution. I would like to ask something further.
What if every month I have difference amount of sample to be selected, for example it might need more than 2 samples to cover at least 40%. Is there any formula that can auto detect to make sure I cover at least 40% of the total as my sample?
Thank you.
Hi @Angie_ ,
Review Creteria = VAR ranki = RANKX ( FILTER(Table1,Table1[accum]>0.4), Table1[accum],, ASC, DENSE ) RETURN IF ( Table1[accum]<=0.4 || ranki =1, "Sample selected", BLANK () )
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
114 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
164 | |
116 | |
63 | |
57 | |
50 |