Forum Discussion

Pfin's avatar
Pfin
Frequent Visitor
1 year ago
Solved

Power BI - Excel To Power BI - Report Style Help Needed

I'm trying to recreate a report in Power BI that has long lived in Excel for YEARS where the user can basically create the format that has been used.  Any input on how to provide this same information on a one pager to provide same info would be greatly appreciated.

 

In short, there is an X-axis (Segment/Size) and a Y-axis (Manufacturer).  I need the report to place the data points (Model, Price, and Available Date) in the cells.  This is a living table/report where current values can be updated, records removed, records added.

 

It doesn't have to be this exact look / feel, but it needs to be easy to read similar to this and displayed on one page and printable. I have attached the example data and report below.

 

Data Table

 

ManufacturerSegmentModelPriceAvailable Date
ChevroletMiniSpark120009/30/2025
ChevroletMiniBolt90002/28/2026
ChevroletSmallTrax220006/30/2025
ChevroletMediumMalibu240001/31/2026
ChevroletMediumBlazer270003/31/2026
FordSmallFiesta1200012/31/2025
FordSmallFocus100008/31/2025
FordLargeTaurus190004/30/2025
KiaMiniPicanto100008/31/2025
KiaSmallRio1400011/30/2025
KiaLargeCadenza280007/31/2025

 

Report

  • Pfin 

    Use this measure:

    Data = 
    
    CONCATENATEX(
        Table02,
        Table02[Model] & UNICHAR(10) &
        Table02[Price] & UNICHAR(10) &
        Table02[Available Date] & UNICHAR(10), "-----------" & UNICHAR(10)
    )
    

     




5 Replies

  • Fowmy's avatar
    Fowmy
    Super User

    Pfin 

    Use this measure:

    Data = 
    
    CONCATENATEX(
        Table02,
        Table02[Model] & UNICHAR(10) &
        Table02[Price] & UNICHAR(10) &
        Table02[Available Date] & UNICHAR(10), "-----------" & UNICHAR(10)
    )
    

     




    • Pfin's avatar
      Pfin
      Frequent Visitor

      Wow!  This is fantastic!  Thank you!

  • Hi,

    This M code works as well

    let
        Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"Manufacturer", type text}, {"Segment", type text}, {"Model", type text}, {"Price", Int64.Type}, {"Available Date", type date}}),
        #"Merged Columns" = Table.CombineColumns(Table.TransformColumnTypes(#"Changed Type", {{"Price", type text}, {"Available Date", type text}}, "en-IN"),{"Model", "Price", "Available Date"},Combiner.CombineTextByDelimiter("#(lf)", QuoteStyle.None),"Merged"),
        #"Grouped Rows" = Table.Group(#"Merged Columns", {"Manufacturer", "Segment"}, {{"Count", each Text.Combine(_[Merged],"#(lf)-----------------#(lf)")}}),
        #"Pivoted Column" = Table.Pivot(#"Grouped Rows", List.Distinct(#"Grouped Rows"[Segment]), "Segment", "Count")
    in
        #"Pivoted Column"

    Hope this helps.

     

    • Pfin's avatar
      Pfin
      Frequent Visitor

      This is fantastic as well!  Thank you for the reply and help!

      • Ashish_Mathur's avatar
        Ashish_Mathur
        Super User

        You are welcome.  If my previous reply helped, please mark that reply as Answer.