Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
■やりたいこと
Power BI のマトリックスに「諸費用」という大項目があり、その中に「損害保険」「公正証書手数料」「開発工事費用」「設計費」などの小項目が存在します。
スライサーでこの諸費用の小項目を選択し、マトリックスの「諸費用」行の金額表示を以下のように制御したいと考えています。
・小項目が未選択の場合→ マトリックスの「諸費用」行は空白
・小項目を1つ以上選択した場合→ 選択した小項目の合計金額を「諸費用」行に表示
・小項目をすべて選択した場合→ 「諸費用」全体の合計金額を表示
また、
「賃料」「地代」「収入計」など、諸費用以外の行はスライサーの影響を受けず、通常の金額を表示したいです。
■現在のデータ構造
テーブル:合算リスト
列:
・項目(例:賃料、地代、諸費用など)
・小項目(例:損害保険、公正証書手数料、開発工事費用など)
・金額
マトリックス:
行 → 項目マスタ[項目]
値 → 合算リスト[金額]
スライサー:
諸費用選択[小項目]
■現在の問題
Power BI のスライサーは「未選択」と「全選択」がどちらもフィルターなし扱いになるため、
・未選択 → 空白
・全選択 → 合計
のように区別したい要件を DAX で判定することができず、意図した表示制御ができません。
このような要件を Power BI で実装する方法があるかご教示いただけますでしょうか。
未選択時は空白、全選択では合計値とすることはスライサーで実際に実現できますか。
現状うまくいってません。
Solved! Go to Solution.
Hi @yurishiraishi,
Thank you for reaching out to the Microsoft Fabric Community Forum. I reproduced the scenario, and it worked on my end. I used it as sample data and successfully implemented it.
outcome:
I am also including .pbix file for your better understanding, please have a look into it.
Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum
Hi @yurishiraishi,
Thank you for reaching out to the Microsoft Fabric Community Forum. I reproduced the scenario, and it worked on my end. I used it as sample data and successfully implemented it.
outcome:
I am also including .pbix file for your better understanding, please have a look into it.
Hope this clears it up. Let us know if you have any doubts regarding this. We will be happy to help.
Thank you for using the Microsoft Fabric Community Forum
Hi @yurishiraishi,
Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.
Thank you.
Hi @yurishiraishi,
Just wanted to follow up. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.
Thank you.
could you pls provide some sample data and expected output. It will be better if the sample data is in English.
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 39 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |