Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Custom Power BI Table to display measures in Rows

Hi Guys,

I am using Imported Power BI file and has 5 tables in it and related to each other as per the requirement. I've created all the required measures on the model. Now, my question is to display those measures as per the Business necessity. here's how they wanted to look like... all these measures will be sliced by Filter Consisting of Zip Codes init. Need to pin this visual in Dasboard.

 

Table.PNG

 

 

 

 

 

 

 

 

 

 For example, To display ForecastYOY row... I've created 2 measures to display ForecastYOY ($) and ForecastYOY % Change.

I was unable to display all these measures in the above table format. Is there anyway to display like that or should i go for creating my own custom visual, if so how can i acheive that ?.

 

I have used PowerKPI Metrics to display first 5 rows and the rest of the 2 column names itself are dynamic which tends to change based on filter appiled (Date part in the column). Is there anyway that i can acheive in the same visual. I tried to move the date part from the column name to value but it's not displaying because the datatype in currency whereas we are trying ti insert date into it.

 

This how far I can go by using that custom visual...

Capture.PNG

 

Any help is greatly appreciated!

1 ACCEPTED SOLUTION
v-viig
Community Champion
Community Champion

It seems you should use a DAX query to build a column that meets your requirements.

After that you would need to put this column into Row-based Metric Name if you use Row based data.

As an alternative you might turn off metric name column and use Category data field instead.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

View solution in original post

10 REPLIES 10
v-viig
Community Champion
Community Champion

Hi @Anonymous

 

If my undertstanding is cirrect you wants to show dates. Is that correct?

If this is correct you should turn on As of Date column via Format Panel.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Anonymous
Not applicable

Thanks for the Response.

 

No, I want to display the Metric Name having fixed Text (Historical Min) and concatenating with variable measure which brings back different dates based on the filters applied So my requirement is typically to create a dynamic measure name...

 

I know how to create a dynamic measure name but I can't retrofit into this visual as per my needs.

 

Let me know if I miss any thing.

v-viig
Community Champion
Community Champion

It seems you should use a DAX query to build a column that meets your requirements.

After that you would need to put this column into Row-based Metric Name if you use Row based data.

As an alternative you might turn off metric name column and use Category data field instead.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

I have run into similiar sorting question.  I am not quite sure how DAX query could work for custom sort, I even embed a seperate rank table including table ID, rowID in a rank table, intended to join back to the main reporting table for custom sorting but doesnt work on Matrix or Table format.  

 

Another alternative is to have a rank row build in the report table, the sort could only enabled while the sort field display.  Turning off would remove the sort.  

 

Also tried https://community.powerbi.com/t5/Desktop/Custom-Sorting-in-PowerBI/td-p/126534 method, but couldn't make the relationship work.  

 

Besides, my team is collaborating with the same file by passing on upon completion, each time the queries point to different path and might had messed up the other embedded functions.  Is there any better way for team collaboration?  The server collaboration doesn't allow download file, if so it would run into the same problem upon editing the DAX queries right?

 

Any help will be greatly appreciated!

Thanks,

Victor 206-310-6181

What visual are you using?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

I am using table and matrix display for display, not even visuals.

I suggest asking in Desktop topic because it's related to DAX and core components (not custom visuals).

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

I would appreciate if you could help find the solution instead of pointing to different direction.  However I had already got the answer and couldn't wait for so many days to exchange message here.  Thats is why I include my phone number at the first place hoping to resolve it in a much quicker fashion.  

Anonymous
Not applicable

@victorfong 

Hi Victor,

 

 I was wondering if you were able to resolve this problem and if you could plese share the logic and/or DAX that you used to have the measures inthe rows and columns as well. 

Thanks in advance.

Hello Victor,

 

I am sorry that we couldn't solve your issue quickly.

You should understand that It is a thread for issues regarding Custom Visuals Development and your question was out of our expertise.

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors