The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
Maybe this is a simple question but would like to know the best practice.
I have the following table and I want to filter with the following and get the sum.
- I have a slice for ID. Based on the slicer selection i want to have total.
- Filters are: Output is 3, Type is 99 and period can be either 3, 6 or 12.
- the table is:
ID | Output | Type | Period | Value |
A | 3 | 99 | 3 | 14 |
A | 3 | 99 | 6 | 13 |
A | 3 | 99 | 12 | 16 |
A | x | c | 12 | 33 |
A | 4 | 99 | # | 23 |
A | 3 | f | # | 22 |
A | 3 | v | 12 | 32 |
B | 3 | 99 | 3 | 14 |
B | 3 | 99 | 6 | 23 |
B | 3 | 99 | 12 | 16 |
B | x | c | 12 | 30 |
B | 4 | 99 | # | 23 |
B | 3 | f | # | 26 |
B | 3 | v | 12 | 21 |
Solved! Go to Solution.
I think the second formula reads better and probably minismises system overheads.
Hi @IF ,
The second option is better because you don't load the table into the Filter function each time - you do it once.
Is this measure the only one with such many conditions? If not and you will create more similar measures then in my opinion it is better to use slicers to filter the data.
_______________
If I helped, please accept the solution and give kudos! 😀
Dear @IF ,
use measure 2 it will work out faster .
Give kudos to motiavte .
if this helped accept as solution
Regards ,
Sujit
@IF , the second one is better. We should avoid the use of "OR" as far as possible. OR can slow down on big data
@IF , the second one is better. We should avoid the use of "OR" as far as possible. OR can slow down on big data
Dear @IF ,
use measure 2 it will work out faster .
Give kudos to motiavte .
if this helped accept as solution
Regards ,
Sujit
Hi @IF ,
The second option is better because you don't load the table into the Filter function each time - you do it once.
Is this measure the only one with such many conditions? If not and you will create more similar measures then in my opinion it is better to use slicers to filter the data.
_______________
If I helped, please accept the solution and give kudos! 😀
I think the second formula reads better and probably minismises system overheads.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
80 | |
78 | |
43 | |
37 |
User | Count |
---|---|
157 | |
112 | |
64 | |
60 | |
54 |