The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi ,
Can anyone advice how to achieve TOP N + others in Power BI with Live Connection (Don’t have option to create calculated columns or Calculated table both are greyed out). Something live below
Solved! Go to Solution.
Hi @BSPAVAN86 ,
You can create a measure to get your expected output. I made a sample and please follow these steps.
Sample data:
Create a measure. (Here, my others is "LL Road Frame".)
Measure =
VAR _top3 =
TOPN (
3,
ALL ( 'Product'[Model Name] ),
CALCULATE ( SUM ( 'Product'[Dealer Price] ) ), DESC
)
RETURN
IF (
HASONEVALUE ( 'Product'[Model Name] ),
SWITCH (
TRUE (),
SELECTEDVALUE ( 'Product'[Model Name] ) = "LL Road Frame", SUM ( 'Product'[Dealer Price] ),
CALCULATE ( SUM ( 'Product'[Dealer Price] ), KEEPFILTERS ( _top3 ) )
)
)
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @BSPAVAN86 ,
You can create a measure to get your expected output. I made a sample and please follow these steps.
Sample data:
Create a measure. (Here, my others is "LL Road Frame".)
Measure =
VAR _top3 =
TOPN (
3,
ALL ( 'Product'[Model Name] ),
CALCULATE ( SUM ( 'Product'[Dealer Price] ) ), DESC
)
RETURN
IF (
HASONEVALUE ( 'Product'[Model Name] ),
SWITCH (
TRUE (),
SELECTEDVALUE ( 'Product'[Model Name] ) = "LL Road Frame", SUM ( 'Product'[Dealer Price] ),
CALCULATE ( SUM ( 'Product'[Dealer Price] ), KEEPFILTERS ( _top3 ) )
)
)
Final output:
Best Regards,
Community Support Team _ xiaosun
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@BSPAVAN86 , I doubt that, in month the approaches you need a table or column, you need get it created in source
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |