The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi
I am trying to create 4 new measures based on a single value column - the problem is that my value column contains a bunch of units (energy consumption, volume, temperatures)
The differentiation is based on another column which defines the value type. I need to create calculations based on the values so I need to split them in difference columns.
I assume the calculation looks something like this:
"IF "startswith" 5.T1 THEN value = Measure1
"IF "startswith" 5.T2 THEN value = Measure2
"IF "startswith" 5.T4 THEN value = Measure3
"IF "startswith" 5.T5 THEN value = Measure4
Im pretty new in Powerbi coming from Tableau, any help is greatly appreciated.
Thanks 🤘
Solved! Go to Solution.
This is not the way to do it. Use Power Query to shape the data correctly and then your DAX measures will be as easy as 1-2-3. If you don't know what the term "tidy data" means, then I'd suggest looking at What’s Tidy Data?. How to organize messy datasets in… | by Rodrigo Marino | Towards Data Science and/or Tidy data (r-project.org).
This is not the way to do it. Use Power Query to shape the data correctly and then your DAX measures will be as easy as 1-2-3. If you don't know what the term "tidy data" means, then I'd suggest looking at What’s Tidy Data?. How to organize messy datasets in… | by Rodrigo Marino | Towards Data Science and/or Tidy data (r-project.org).
@RasmusLVF , Create measures like
Measure1 = calculate(sum(Table[Value]), filter(Table, left(Table[Column],3) = "5.T1"))
Thanks alot, that didnt appear to return any values though.
User | Count |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |