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
I have two columns: Column1 (integers) and Column2 (dummy variable - 0 or 1).
I have to insert Column3 in my dashboard such that it shows only values in Column1 for which Column2 = 1.
What is the best way to do it?
There is an example below.
Thanks!
Column1 --- Column2
100 ---- 0
250 ---- 1
99 ---- 0
10 ---- 1
120 ---- 1
Table in Power BI Dashboard should show this:
Column3
250
10
120
Solved! Go to Solution.
Hi, @Glibberg
You can try the following methods.
Table:
Table 2 = SUMMARIZE(FILTER('Table',[Column2]=1),'Table'[Column1])
The newly created table is your desired output and can be put directly into the dashboard.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Glibberg
You can try the following methods.
Table:
Table 2 = SUMMARIZE(FILTER('Table',[Column2]=1),'Table'[Column1])
The newly created table is your desired output and can be put directly into the dashboard.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Easiest way is to use the Filter Pane on the right side.
Drag a Table Visual onto your canvas.
Drag Column1 into the Column well. Select "Don't Summarize" in the dropdown.
Drag Column2 into the Filter Pane. Choose Basic Filtering and check the value 1.
Hope this helps you on your way.
Regards,
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.
User | Count |
---|---|
112 | |
80 | |
75 | |
52 | |
50 |
User | Count |
---|---|
132 | |
124 | |
78 | |
64 | |
61 |