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.
Hi Community,
I have a column (XY FILE) that I made by adding two columns (X file + Y file).
I want to filter that column by X file or Y file, but when I do that it filters it wrong.
X file | Y file | XY file
1 1 2
1 0 1
0 1 0
If I'm filtering by X files it will show me 3 but the correct answer is 2 cause I have only two X files.
which formula should I use?
Thank you 🙂
Hi @YehudaBI
If there are only 1 and 0 in X and Y file columns, try this measure:
Measure = countrows(table)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi VahidDM,
Maybe I didn't explain myself right.
I Have another Column that I'm filtering X or Y with it.
I need a measure that:
- If nothing is Filtered: it sums the XY file column
- if X file is filtered: it sums just the X file column
- if Y file is filtered: it sums just the Y file column
I hope this time I explained myself well.
Thank you!
Hi Amitchandak,
Maybe I didn't explain myself right.
I Have another Column that I'm filtering X or Y with it.
I need a measure that:
- If nothing is Filtered: it sums the XY file column
- if X file is filtered: it sums just the X file column
- if Y file is filtered: it sums just the Y file column
I hope this time I explained myself well.
Thank you!
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |