Optimal way of pivoting visuals in power bi? - powerbi

In power bi, I need to “recreate” a report from another system, and I have to do visuals like:
This cannot be natively achieved in PowerBI… Therefore I end up doing this “”trick” in my model:
Then I create a measure, to use the measures:
Then I just drag them in my Table visual:
Is there any other way to achieve this? It definitely works, but it seems very very cumbersome, and I hope someone knows an easier way?

Related

How to transpose a "Measure" table in Power BI desktop?

I am having a "Measure" table in PowerBI desktop which I want to transpose it in Query Editor, I know how to do this if it is not a measure or calculated table, any ideas how to achieve it with measure table?
You can't go back with PowerPivot tables to PowerQuery. Your only option is to stay in PowerPivot and use DAX. Unfortunately there is no transpose function in DAX, so you basically have to construct your transposed table manually using the SELECTCOLUMNS() and FILTER() functions.
In the Packt library there is a recipe how to achieve that: Transposing tables
Depending on your data model it might be easier to create a transposed copy of your table in PQ before you start adding measures in PP.

Power BI how can I display multiple measures in a table like view

I have created multiple measures in my report, is it possible I can display in separate visuals grouping these measures in a table like manner? i.e. separate visuals for fruit and meat
Also, to be able to drill through to see the details that make up the value of the measures.
The easiest way to do this is to use multi-row card visual:

Power BI DAX - Measure to change name of row value

I need some help creating a measure to change the name of "FROM_USER" in the slicer here.
I think I need to use the function SELECTEDVALUE, but I have not managed to get it working.
So, the column has only two values, CRAWLER and FROM_USER.
Any suggestions would be helpful!
See picture
Measures can't be used as slicer values. If you want the column values to be changed and yet to be used in a slicer, you need to create a calculate column to change that.
Column = IF('Table'[Column1]="FROM_USER","desiredValue","CRAWLER")
If you are really keen on using a measure to slice, you need to build a disconnected table and follow the method described here. But the performance will take a hit depending on how complex your data model and calculations are.

Power BI - How to have a calculated column and place it in a merged cell?

I am new to Power BI and with the limited time given, I am stuck at how to come up with:
Below Table B-Row1 ("1/20" and "M"-Monday cell) - how to
specifically place the date measures in their specific cell and put
it in one column?
How can I merge the cells under the Total column?
How to add all the numbers from the Type1 and Type2 columns and place it in the merged cell in #2?
Any clues/direction/links on how to achieve the Target Table B below will be much appreciated.
PS. Below Table A. Current is just using Matrix Visualization in Power BI.
You can't exactly do what you are after. PowerBI allows you to rapidly put amazing visuals together however that comes at the price of lack of (easy) flexibility. You could build your own custom visual or look in App Source for a visual that does this, or build the Visual in some other tool (via custom code).
However, I'd recommend sticking with the PowerBI matrix, which will give you a cascading drill down and work out how best to align your data to it and other out of the box visuals. Once you start to delve in to convoluted work-arounds to give users data in exactly the format they request you start to burn a lot of time. Look for alternatives to tell the data's story and work with your end-user to buy in to it.
Just wanna share that I have resolved my problem not using one type of visualization, but through using 3 different visualizations in Power BI. I used:
1 Table visual for Date column
1 Table visual for Total column
1 Matrix visual for the Code+Type mapping and counts
I also used DAX function to get the Date format and another DAX function used for both Total and Code+Type counts(to filter data according to the specified date).
Thanks for the response, #Murray and #RADO.

how to move columns in one table to other table in power bi?

I want to move(denormalize)two tables into another tabe,how can I do it?
have two tables like:- 'sales by category','product by category',
I want to move these two tables into another table which is 'products'.
i tried Related function with calucated column and it won't work bcoz those tables sharing one-one relationship
plz solve my issue who are familiar with data modelling and dax in power bi
The best way is to use the merge function in power query, follow the tutorial on the below link it'll explain it better, this will allow you to join the tables you need into query, in turn creating a table in Power BI
https://learn.microsoft.com/en-us/power-bi/desktop-shape-and-combine-data#combine-queries