如何将类别添加到Power BI中的列?
我的数据与此格式类似:
customerName | Type of Sale | Sales Amount | Unit Purchased
-------------------------------------------------------------------
A | Online | 1500 | 4
B | Offline | 2000 | 5
C | Online | 3000 | 4
D | Offline | 4000 | 4
我希望以矩阵格式的Power BI中的以下格式进行以下格式
Metric | Sales Amount | Units Purchased
-----------------------------------------------------------
Customer Name | Online | Offline | Online | Offline
-----------------------------------------------------------
A | 15000 | 0 | 4 | 0
B | 0 | 2000 | 0 | 5
I have data similar to this format:
customerName | Type of Sale | Sales Amount | Unit Purchased
-------------------------------------------------------------------
A | Online | 1500 | 4
B | Offline | 2000 | 5
C | Online | 3000 | 4
D | Offline | 4000 | 4
and I want data in following format in Power BI in Matrix Format
Metric | Sales Amount | Units Purchased
-----------------------------------------------------------
Customer Name | Online | Offline | Online | Offline
-----------------------------------------------------------
A | 15000 | 0 | 4 | 0
B | 0 | 2000 | 0 | 5
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们可以实现这种可视化,但是这需要一些步骤(与标准设计相比,更努力,较低的性能。)
首先,我们需要一张带有“销售量”和“购买单位”的额外表格。
与许多人的关系。
添加其他措施:
We can achieve this kind of visualization, but this needs some steps (more effort, Lower performance compared to the standard design.)
First we need an additional table with lables "Sales Amount" and "Units Purchased".
Relationship many to many.
Add additional measures: