Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
I have a measure with the following text:
"The value of goods on sea is " & SUM([goodsonsea])
And further down
"The value of goods in purchase orders is " & SUM([purchaseorders])
In between the two lines I would like to list the data from this table:
Supplier | Week | Cll |
Supplier1 | 42 | 6 |
Supplier2 | 42 | 5 |
Supplier1 | 44 | 5 |
Supplier2 | 50 | 3 |
Supplier3 | 42 | 4 |
Supplier4 | 44 | 4 |
The text could be something like
"In week 42 we receive 6 cll from Supplier1 and 5 cll from supllier2 ect."
"In week 44 we receive 5 cll from Supplier1 and 4 cll from Supplier4 ect"
and so on.
I hope this give you an idea of what it is I'm looking for.
Hope you can help 🙂
Thank you.
Solved! Go to Solution.
Hi @KLJ,
In Power BI desktop, you can create a calculated table below:
Table = var temp= SUMMARIZE('Table1',Table1[Week],'Table1'[Supplier],"con",CONCATENATEX('Table1','Table1'[Cll],","))
return
ADDCOLUMNS(temp,"item",[con]&" cll from "& [Supplier])
Then create a measure:
Measure 3 = var t=SUMMARIZE('Table','Table'[Week],"Detail",CONCATENATEX('Table','Table'[item]," and "))
return
CONCATENATEX(t,"In week " & [Week]& " we receive "&[Detail])
Best Regards,
Qiuyun Yu
Hi @KLJ,
In Power BI desktop, you can create a calculated table below:
Table = var temp= SUMMARIZE('Table1',Table1[Week],'Table1'[Supplier],"con",CONCATENATEX('Table1','Table1'[Cll],","))
return
ADDCOLUMNS(temp,"item",[con]&" cll from "& [Supplier])
Then create a measure:
Measure 3 = var t=SUMMARIZE('Table','Table'[Week],"Detail",CONCATENATEX('Table','Table'[item]," and "))
return
CONCATENATEX(t,"In week " & [Week]& " we receive "&[Detail])
Best Regards,
Qiuyun Yu
Hi Qiuyun Yu
Thank you for the solution.
That did it 🙂
I have added UNICAR(10) at the end of
Measure 3 = var t=SUMMARIZE('Table','Table'[Week],"Detail",CONCATENATEX('Table','Table'[item]," and "))
return
CONCATENATEX(t,"In week " & [Week]& " we receive "&[Detail] & UNICHAR(10))
then it worked out exactly as I wanted. 🙂
Thanks again
Kim
User | Count |
---|---|
84 | |
76 | |
74 | |
48 | |
39 |
User | Count |
---|---|
114 | |
56 | |
51 | |
42 | |
42 |