The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi team
I currently have a dashboard set up on excel which will be described below. Essentially I want to set it up on Power BI and as currently set up in excel, there are a couple of variables I want to test to see how it impacts capacity and interest of a list of suppliers. I am also bringing in several other data sources into Power BI to enhance the supplier information - such as credit scores, financials, turnover, share price information, news.
Solved! Go to Solution.
Hi Clara
Thanks for taking the time and effort to look into this for me.
When I was creating a table visual and including these 3 measures as columns, the table went blank with no information available on display:
AppetiteForProjectSize =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Project Size Limit] ),
LEN ( MAX ( 'Table'[Project Size Limit] ) ) - 1
)
)
RETURN
IF ( [Project Value Value] < _num, "appetite", "no appetite" )
-----------
AverageProjectValuePerYear =
[Project Value Value] / [Duration Value]
----------
TurnoverThreshold =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Latest Annual Turnover] ),
LEN ( MAX ( 'Table'[Latest Annual Turnover] ) ) - 1
)
)
RETURN
_num / [AverageProjectValuePerYear]
-----------
However, I amended these three measures to the following:
Annual Capacity Measure = IF([AverageProjectValuePerYear] > SUM('Table1'[Available Single Project Spend per Year]), "No capacity", "Has capacity")
Appetite Interest (calculated column used here) =
IF(
[Project Value Value] <= 'Table1'[Project Size Limit],
"Appetite confirmed",
"No appetite for this scheme size"
)
Turnover_Threshold_Ratio Measure = DIVIDE(SUM('Table1'[Latest Annual Turnover]), [AverageProjectValuePerYear])
This seems to have solved the issue which was occuring above.
The two parameters, once adjusted, impact the table.
Kind regards
Hi @DP2022 ,
Based on your description, I created these data.
1. create two parameters.
2. created measure for dynamic calculation.
AverageProjectValuePerYear =
[Project Value Value] / [Duration Value]
AnnualCapacity =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Available Single Project Spend per Year] ),
LEN ( MAX ( 'Table'[Available Single Project Spend per Year] ) ) - 1
)
)
RETURN
IF ( [AverageProjectValuePerYear] > _num, "no capacity", "capacity" )
AppetiteForProjectSize =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Project Size Limit] ),
LEN ( MAX ( 'Table'[Project Size Limit] ) ) - 1
)
)
RETURN
IF ( [Project Value Value] < _num, "appetite", "no appetite" )
TurnoverThreshold =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Latest Annual Turnover] ),
LEN ( MAX ( 'Table'[Latest Annual Turnover] ) ) - 1
)
)
RETURN
_num / [AverageProjectValuePerYear]
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Clara
Thanks for taking the time and effort to look into this for me.
When I was creating a table visual and including these 3 measures as columns, the table went blank with no information available on display:
AppetiteForProjectSize =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Project Size Limit] ),
LEN ( MAX ( 'Table'[Project Size Limit] ) ) - 1
)
)
RETURN
IF ( [Project Value Value] < _num, "appetite", "no appetite" )
-----------
AverageProjectValuePerYear =
[Project Value Value] / [Duration Value]
----------
TurnoverThreshold =
VAR _num =
VALUE (
RIGHT (
MAX ( 'Table'[Latest Annual Turnover] ),
LEN ( MAX ( 'Table'[Latest Annual Turnover] ) ) - 1
)
)
RETURN
_num / [AverageProjectValuePerYear]
-----------
However, I amended these three measures to the following:
Annual Capacity Measure = IF([AverageProjectValuePerYear] > SUM('Table1'[Available Single Project Spend per Year]), "No capacity", "Has capacity")
Appetite Interest (calculated column used here) =
IF(
[Project Value Value] <= 'Table1'[Project Size Limit],
"Appetite confirmed",
"No appetite for this scheme size"
)
Turnover_Threshold_Ratio Measure = DIVIDE(SUM('Table1'[Latest Annual Turnover]), [AverageProjectValuePerYear])
This seems to have solved the issue which was occuring above.
The two parameters, once adjusted, impact the table.
Kind regards
User | Count |
---|---|
65 | |
60 | |
55 | |
54 | |
31 |
User | Count |
---|---|
180 | |
88 | |
70 | |
46 | |
46 |