Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
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
Hello,
I need help in something that might be simple.
I have a table with "total transactions per hour" in one column and "50% of the transactions per hour" in another column, something similar to this:
HOUR TOT 50%
3pm 208 104
4pm 212 106
5pm 218 109
Total 638 319
I have to create another column with the percentage of the 50% of transactions per each hour over the total (638). In other words, i need the following:
104 / 638
106 / 638
109 / 638
Any help would be greatly appreciated.
thanks!
Solved! Go to Solution.
@Anonymous -
You should be apple to add another column as:
% = DIVIDE ( TableName[50%], SUM ( TableName[TOT] ), 0 )
Proud to be a Super User!
@Anonymous
You may add the measure below.
Measure 2 =
DIVIDE (
[50%],
CALCULATE ( SUM ( 'Table'[TOT] ), ALLSELECTED ( 'Table'[HOUR] ) )
)
@Anonymous -
You should be apple to add another column as:
% = DIVIDE ( TableName[50%], SUM ( TableName[TOT] ), 0 )
Proud to be a Super User!
thanks.
but the challenge is that the "50% transactions" is not a straight calculation from "tot transactions", but the result of SELECTEDVALUE from a filter...
@Anonymous
You may add the measure below.
Measure 2 =
DIVIDE (
[50%],
CALCULATE ( SUM ( 'Table'[TOT] ), ALLSELECTED ( 'Table'[HOUR] ) )
)
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 68 | |
| 33 | |
| 31 | |
| 31 |