The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I have a dashboard in the making for solar panels.
Would like to connect the Solar Generation with the Export Tables in some way.
I have some measures created.
I also have a table with the Export Prices depending on when the export occurs.
Ultimatly, what I would like to have is a measure that multiples the Export by the Price.
So the 26th of May as an example would be:
Peak Rate
2.7 * 0.337
Day Rate
1.8 * 0.209
Flux Rate
0.0 * 0.082
Then I can create a total. The tables aren't linked as there isn't anything to link them with>>Many thanks in advance.
Solved! Go to Solution.
Hi @DavidUK13 ,
According to your description, I create a sample like yours, here's my solution. Create a measure:
Measure =
VAR _peak =
MAX ( 'Solar Generation'[Export During Peak Rate] )
* MAXX (
FILTER ( ALL ( 'Export' ), 'Export'[Tariff Type] = "Peak Rate" ),
'Export'[Export Price]
)
VAR _flux =
MAX ( 'Solar Generation'[Export During Flux Rate] )
* MAXX (
FILTER ( ALL ( 'Export' ), 'Export'[Tariff Type] = "Flux Rate" ),
'Export'[Export Price]
)
VAR _day =
MAX ( 'Solar Generation'[Export During Day Rate] )
* MAXX (
FILTER ( ALL ( 'Export' ), 'Export'[Tariff Type] = "Day Rate" ),
'Export'[Export Price]
)
RETURN
_peak + _flux + _day
Get the correct result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DavidUK13 ,
According to your description, I create a sample like yours, here's my solution. Create a measure:
Measure =
VAR _peak =
MAX ( 'Solar Generation'[Export During Peak Rate] )
* MAXX (
FILTER ( ALL ( 'Export' ), 'Export'[Tariff Type] = "Peak Rate" ),
'Export'[Export Price]
)
VAR _flux =
MAX ( 'Solar Generation'[Export During Flux Rate] )
* MAXX (
FILTER ( ALL ( 'Export' ), 'Export'[Tariff Type] = "Flux Rate" ),
'Export'[Export Price]
)
VAR _day =
MAX ( 'Solar Generation'[Export During Day Rate] )
* MAXX (
FILTER ( ALL ( 'Export' ), 'Export'[Tariff Type] = "Day Rate" ),
'Export'[Export Price]
)
RETURN
_peak + _flux + _day
Get the correct result:
I attach my sample below for your reference.
Best regards,
Community Support Team_yanjiang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
78 | |
67 | |
52 | |
50 |
User | Count |
---|---|
121 | |
119 | |
77 | |
62 | |
61 |