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! I am new to power BI and would like to transform a calculated column into a measure in order for a slicer to work.
I have 2 tables:
Tested Applicable
a b
a c
a d
Meaning if a is tested then it can also be applicable to b, c and d
Tested Test Result
a line good
a circle bad
a square same
b line bad
c line same
If the user selects b, i would like for it to get the results for b for the specific test type while still getting the results for a for the others.
I first decided to make a calculated column which gets the results based on test type and tested, but apparently it won't update based on the user selection. I would need it to update based on user selection.
Thank you!
Hi, @Anonymous
Could you please explain the logic and show the expected result based on your original post?
Best Regards
Allan
@Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Appreciate your Kudos.
highlight the calculated column, save the code somewhere in a text editor, delete the calculated column, create a new measure, paste the code.
Then you may have to adjust it a bit depending on your circumstances as you are now moving from row context to filter context.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |